Firefox element focus hack
authorDarren <darren@darrenwhitlen.com>
Mon, 1 Oct 2012 17:19:02 +0000 (18:19 +0100)
committerDarren <darren@darrenwhitlen.com>
Mon, 1 Oct 2012 17:19:02 +0000 (18:19 +0100)
client_backbone/css/style.css
client_backbone/dev/model_application.js

index b7cb56cda6c1d6f383b829e2482aff73c3387658..9fe6cae10a08689b25837cc4024fbe3abcc37d5f 100644 (file)
@@ -81,7 +81,7 @@ a { color:#36C; text-decoration:none; cursor:pointer; }
 #status_message.err { color:#D8000C; background:#FFBABA; }
 
 
-.panel_container { overflow-y:scroll; height:100%; }
+.panel_container { overflow-y:auto; height:100%; }
 
 
 
index 0828ee52020640d6666c007e467c0e91d7aaefc8..9e9aade8b4d6034ae755b8bf944aff043a93f391 100755 (executable)
@@ -61,7 +61,10 @@ kiwi.model.Application = function () {
         });\r
 \r
         // TODO: Shouldn't really be here but it's not working in the view.. :/\r
-        this.panels.server.server_login.$el.find('.nick').select();\r
+        // Hack for firefox browers: Focus is not given on this event loop iteration\r
+        setTimeout(function(){\r
+            kiwi.app.panels.server.server_login.$el.find('.nick').select();\r
+        }, 0);\r
     };\r
 \r
 \r