make it easier to test things
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 11 Dec 2005 06:48:26 +0000 (06:48 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 11 Dec 2005 06:48:26 +0000 (06:48 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2331 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js
Open-ILS/xul/staff_client/server/main/menu.js
Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul

index 185a387..606c506 100644 (file)
@@ -33,5 +33,7 @@ var urls = {
        'remote_patron_items' : 'data:text/html,<h1>Items Here</h1>',
        'remote_patron_search' : '/xul/server/patron/search.xul',
        'remote_patron_summary' : '/xul/server/patron/summary.xul',
+       'test_html' : '/xul/server/main/test.html',
+       'test_xul' : '/xul/server/main/test.xul',
        'xul_opac_wrapper' : '/xul/server/cat/opac.xul',
 }
index 9463e4a..4b07dae 100644 (file)
@@ -50,19 +50,28 @@ main.menu.prototype = {
                        'cmd_circ_checkout' : [
                                ['command','keypress'],
                                function() { 
-                                       obj.set_tab(urls.remote_patron_barcode_entry + '?session='+obj.w.escape(session),{},{'yadda':'yadda'});
+                                       obj.set_tab(urls.remote_patron_barcode_entry + '?session='+obj.w.escape(session),{},{});
                                }
                        ],
                        'cmd_search_opac' : [
                                ['command','keypress'],
                                function() {
                                        var content_params = { 'authtoken' : session, 'authtime' : authtime };
-                                       obj.error.sdump('D_MENU','session = ' + session);
-                                       obj.error.sdump('D_MENU','authtime = ' + authtime);
-                                       obj.error.sdump('D_MENU','content_params = ' + js2JSON(content_params));
                                        obj.set_tab(urls.xul_opac_wrapper,{},content_params);
                                }
-                       ]
+                       ],
+                       'cmd_test_html' : [
+                               ['command','keypress'],
+                               function() {
+                                       obj.set_tab(urls.test_html,{},{});
+                               }
+                       ],
+                       'cmd_test_xul' : [
+                               ['command','keypress'],
+                               function() {
+                                       obj.set_tab(urls.test_xul,{},{});
+                               }
+                       ],
                };
 
                for (var i in cmd_map) {
index 6d1f09f..c40c892 100644 (file)
@@ -30,6 +30,8 @@
        <command id="cmd_xuleditor" />
        <command id="cmd_filter_console" />
        <command id="cmd_fieldmapper" />
+       <command id="cmd_test_html" />
+       <command id="cmd_test_xul" />
 
        <command id="cmd_test" disabled="true" />
        <command id="cmd_broken" disabled="true" />
                <menuitem label="Filterable Console" accesskey="F" command="cmd_filter_console"/>
                <menuitem label="Javscript Console" accesskey="J" command="cmd_console"/>
                <menuitem label="Javscript Shell" accesskey="H" command="cmd_shell"/>
+               <menuitem label="server/main/test.html" accesskey="1" command="cmd_test_html"/>
+               <menuitem label="server/main/test.xul" accesskey="2" command="cmd_test_xul"/>
        </menupopup>
 </menu>