From: Darren Date: Mon, 1 Oct 2012 17:19:02 +0000 (+0100) Subject: Firefox element focus hack X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=72e939c0e496c6b5ac49607dd4b2d92910580a46;p=KiwiIRC.git Firefox element focus hack --- diff --git a/client_backbone/css/style.css b/client_backbone/css/style.css index b7cb56c..9fe6cae 100644 --- a/client_backbone/css/style.css +++ b/client_backbone/css/style.css @@ -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%; } diff --git a/client_backbone/dev/model_application.js b/client_backbone/dev/model_application.js index 0828ee5..9e9aade 100755 --- a/client_backbone/dev/model_application.js +++ b/client_backbone/dev/model_application.js @@ -61,7 +61,10 @@ kiwi.model.Application = function () { }); // TODO: Shouldn't really be here but it's not working in the view.. :/ - this.panels.server.server_login.$el.find('.nick').select(); + // Hack for firefox browers: Focus is not given on this event loop iteration + setTimeout(function(){ + kiwi.app.panels.server.server_login.$el.find('.nick').select(); + }, 0); };