From 62e7f75f9e68f0ee01dba56c3c5c2f841b7f8ae8 Mon Sep 17 00:00:00 2001 From: Jason Etheridge Date: Thu, 20 Dec 2012 16:10:57 -0500 Subject: [PATCH] internal: default_focus not called Minor bug. Was being called in an else clause dependent on some help context logic for new tabs, but should be called for every new tab. Shouldn't result in any end-user visible change, but if interfaces wrapped in browser.js were to have a default_focus function, then this could come into play. Signed-off-by: Jason Etheridge Signed-off-by: Mike Rylander --- Open-ILS/xul/staff_client/chrome/content/main/menu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index cc7a91afe5..805dcdb252 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -2502,7 +2502,8 @@ commands: 'src' : '' }; obj.set_help_context(help_params); - } else if (typeof cw.default_focus == 'function') { + } + if (typeof cw.default_focus == 'function') { cw.default_focus(); } } catch(E) { -- 2.11.0