From 4d2c4752951fdfdbfb3e4b4263f17959b471bc09 Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 11 Dec 2005 06:48:26 +0000 Subject: [PATCH] make it easier to test things git-svn-id: svn://svn.open-ils.org/ILS/trunk@2331 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/main/constants.js | 2 ++ Open-ILS/xul/staff_client/server/main/menu.js | 19 ++++++++++++++----- .../server/main/menu_frame_menus.xul | 4 ++++ 3 files changed, 20 insertions(+), 5 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js index 185a387157..606c5060ad 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/constants.js @@ -33,5 +33,7 @@ var urls = { 'remote_patron_items' : 'data:text/html,

Items Here

', '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', } diff --git a/Open-ILS/xul/staff_client/server/main/menu.js b/Open-ILS/xul/staff_client/server/main/menu.js index 9463e4a5d6..4b07dae99c 100644 --- a/Open-ILS/xul/staff_client/server/main/menu.js +++ b/Open-ILS/xul/staff_client/server/main/menu.js @@ -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) { diff --git a/Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul index 6d1f09fd54..c40c8923d3 100644 --- a/Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul +++ b/Open-ILS/xul/staff_client/server/main/menu_frame_menus.xul @@ -30,6 +30,8 @@ + + @@ -203,6 +205,8 @@ + + -- 2.43.2