From 72e939c0e496c6b5ac49607dd4b2d92910580a46 Mon Sep 17 00:00:00 2001 From: Darren Date: Mon, 1 Oct 2012 18:19:02 +0100 Subject: [PATCH] Firefox element focus hack --- client_backbone/css/style.css | 2 +- client_backbone/dev/model_application.js | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) 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); }; -- 2.25.1