[open-ils-commits] r20228 - trunk/Open-ILS/xul/staff_client/chrome/content/main (phasefx)

svn at svn.open-ils.org svn at svn.open-ils.org
Wed Apr 20 01:03:37 EDT 2011


Author: phasefx
Date: 2011-04-20 01:03:33 -0400 (Wed, 20 Apr 2011)
New Revision: 20228

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
Log:
More hotkey fixes - Invalidate keyset cache

Thanks to http://forums.mozillazine.org/viewtopic.php?f=19&t=2048501,

Author: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
Signed-off-by: Jason Etheridge <jason at esilibrary.com>


Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2011-04-20 05:03:24 UTC (rev 20227)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/menu.js	2011-04-20 05:03:33 UTC (rev 20228)
@@ -1828,6 +1828,8 @@
                 menuitems[i].style.removeProperty('display'); // Restore normal css display
             }
         }
+        // Force reload of keyset cache?
+        keyset.parentNode.insertBefore(keyset, keyset.nextSibling);
         // If no keys, disable ability to toggle hotkeys (because why bother?)
         var x = document.getElementById('cmd_hotkeys_toggle');
         if(x) {



More information about the open-ils-commits mailing list