[open-ils-commits] r11229 - trunk/Open-ILS/xul/staff_client/chrome/content/main
svn at svn.open-ils.org
svn at svn.open-ils.org
Sun Nov 16 13:48:27 EST 2008
Author: phasefx
Date: 2008-11-16 13:48:23 -0500 (Sun, 16 Nov 2008)
New Revision: 11229
Modified:
trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
Log:
This helps move focus out of newly hidden tabs so that they don't grab shortcut keys
Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-11-16 18:36:24 UTC (rev 11228)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js 2008-11-16 18:48:23 UTC (rev 11229)
@@ -871,6 +871,7 @@
var idx = this.controller.view.tabs.selectedIndex;
if (params && typeof params.index != 'undefined') idx = params.index;
var tab = this.controller.view.tabs.childNodes[ idx ];
+ if (params.focus) tab.focus();
var panel = this.controller.view.panels.childNodes[ idx ];
while ( panel.lastChild ) panel.removeChild( panel.lastChild );
More information about the open-ils-commits
mailing list