accesskeys conflict even if their associated widgets are hidden or disabled
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Dec 2005 22:49:42 +0000 (22:49 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Dec 2005 22:49:42 +0000 (22:49 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2527 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/patron/display.js

index 1fe11c6..25ab774 100644 (file)
@@ -196,6 +196,13 @@ patron.display.prototype = {
                        }
 
                        obj.controller.view.PatronNavBar.selectedIndex = 1;
+                       JSAN.use('util.widgets'); 
+                       util.widgets.enable_accesskeys_in_node_and_children(
+                               obj.controller.view.PatronNavBar.lastChild
+                       );
+                       util.widgets.disable_accesskeys_in_node_and_children(
+                               obj.controller.view.PatronNavBar.firstChild
+                       );
                        obj.controller.view.cmd_patron_refresh.setAttribute('disabled','true');
                        obj.controller.view.cmd_patron_checkout.setAttribute('disabled','true');
                        obj.controller.view.cmd_patron_items.setAttribute('disabled','true');
@@ -249,6 +256,13 @@ patron.display.prototype = {
                        }
 
                        obj.controller.view.PatronNavBar.selectedIndex = 0;
+                       JSAN.use('util.widgets'); 
+                       util.widgets.enable_accesskeys_in_node_and_children(
+                               obj.controller.view.PatronNavBar.firstChild
+                       );
+                       util.widgets.disable_accesskeys_in_node_and_children(
+                               obj.controller.view.PatronNavBar.lastChild
+                       );
                        obj.controller.view.cmd_patron_retrieve.setAttribute('disabled','true');
                        obj.controller.view.cmd_search_form.setAttribute('disabled','true');
                        var form_frame = obj.left_deck.set_iframe(