skipping this. Other things to try.. re-ordering the children in the deck.. or just...
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Dec 2005 23:23:44 +0000 (23:23 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Mon, 26 Dec 2005 23:23:44 +0000 (23:23 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2528 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/util/widgets.js
Open-ILS/xul/staff_client/server/patron/display_overlay.xul

index 58b96bf..6c1c5ce 100644 (file)
@@ -10,23 +10,26 @@ util.widgets.EXPORT_OK      = [
 util.widgets.EXPORT_TAGS       = { ':all' : util.widgets.EXPORT_OK };
 
 util.widgets.disable_accesskeys_in_node_and_children = function( node ) {
-       if (node.getAttribute('accesskeys')) {
-               node.setAttribute('oldaccesskeys', node.getAttribute('accesskeys'));
-               node.setAttribute('accesskeys','');
+       if (node.getAttribute('accesskey')) {
+               node.setAttribute('oldaccesskey', node.getAttribute('accesskey'));
+               node.setAttribute('accesskey',''); node.accessKey = '';
        }
        for (var i = 0; i < node.childNodes.length; i++) {
                util.widgets.disable_accesskeys_in_node_and_children( node.childNodes[i] );
        }
+       dump('- node = <' + node.id + '> accesskey = <' + node.accessKey + '> accesskey = <' + node.getAttribute('accesskey') + '> oldaccesskey = <' + node.getAttribute('oldaccesskey') + '>\n');
 }
 
 util.widgets.enable_accesskeys_in_node_and_children = function( node ) {
-       if (node.getAttribute('oldaccesskeys')) {
-               node.setAttribute('accesskeys', node.getAttribute('oldaccesskeys'));
-               node.setAttribute('oldaccesskeys','');
+       if (node.getAttribute('oldaccesskey')) {
+               node.setAttribute('accesskey', node.getAttribute('oldaccesskey'));
+               node.accessKey = node.getAttribute('oldaccesskey'); 
+               node.setAttribute('oldaccesskey','');
        }
        for (var i = 0; i < node.childNodes.length; i++) {
                util.widgets.enable_accesskeys_in_node_and_children( node.childNodes[i] );
        }
+       dump('+ node = <' + node.id + '> accesskey = <' + node.accessKey + '> accesskey = <' + node.getAttribute('accesskey') + '> oldaccesskey = <' + node.getAttribute('oldaccesskey') + '>\n');
 }
 
 dump('exiting util/widgets.js\n');
index c44992e..b1a5416 100644 (file)
 
 <hbox id="PatronNavBar1">
        <spacer flex="1"/>
+       <!--
        <button id="PatronNavBar_refresh" command="cmd_patron_refresh"
                label="&staff.patron_navbar.refresh;" accesskey="&staff.patron_navbar.refresh.accesskey;"/>
+       -->
+       <button id="PatronNavBar_refresh" command="cmd_patron_refresh"
+               label="&staff.patron_navbar.refresh;" />
        <button id="PatronNavBar_checkout" command="cmd_patron_checkout"
                label="&staff.patron_navbar.checkout;" accesskey="&staff.patron_navbar.checkout.accesskey;"/>
        <button id="PatronNavBar_items" command="cmd_patron_items"