[open-ils-commits] r14878 - trunk/Open-ILS/xul/staff_client/server/OpenILS (phasefx)
svn at svn.open-ils.org
svn at svn.open-ils.org
Thu Nov 12 00:16:48 EST 2009
Author: phasefx
Date: 2009-11-12 00:16:44 -0500 (Thu, 12 Nov 2009)
New Revision: 14878
Modified:
trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
Log:
Magic Control+Alt+F7 Key for debugging
Modified: trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul 2009-11-12 00:07:13 UTC (rev 14877)
+++ trunk/Open-ILS/xul/staff_client/server/OpenILS/util_overlay.xul 2009-11-12 05:16:44 UTC (rev 14878)
@@ -49,6 +49,14 @@
<messagecatalog id="commonStrings" src='/xul/server/locale/<!--#echo var="locale"-->/common.properties'/>
<messagecatalog id="offlineStrings" src='/xul/server/locale/<!--#echo var="locale"-->/offline.properties'/>
<messagecatalog id="authStrings" src='/xul/server/locale/<!--#echo var="locale"-->/auth.properties'/>
+ <hbox id="debug_box" hidden="true" flex="1" style="border: red thin dashed">
+ <label value="Debug:" />
+ <textbox id="debug_tb" flex="1"/>
+ <button label="Execute" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( eval( dtb.value ) ); } catch(E) { alert(E); }; dtb.focus();"/>
+ <button label="Inspect" oncommand="try { var dtb = document.getElementById('debug_tb'); var dx = eval( dtb.value ); var ds = ''; for (var di in dx) { ds += di + '=' + dx[di] + '\r\n'; }; window.open('data:text/plain;charset=UTF-8,'+window.escape(ds),'debug_win','chrome,resizable,modal'); } catch(E) { alert(E); }; dtb.focus();"/>
+ <button label="js2JSON" oncommand="try { var dtb = document.getElementById('debug_tb'); alert( js2JSON( eval( dtb.value ) ) ); } catch(E) { alert(E); }; dtb.focus();"/>
+ </hbox>
+ <keyset><key id="debug_box_key" keycode="VK_F7" modifiers="control,alt" oncommand="var dtb = document.getElementById('debug_tb'); var dx = document.getElementById('debug_box'); dx.hidden = !dx.hidden; if (!dx.hidden) dtb.focus();"/></keyset>
<script>dump('finished openils_util_overlay\n');</script>
</scripts>
More information about the open-ils-commits
mailing list