From 0d941b9744f4d587b76cc1dab3743e1451f7db5d Mon Sep 17 00:00:00 2001 From: phasefx Date: Sun, 11 Dec 2005 07:40:48 +0000 Subject: [PATCH] dev tools git-svn-id: svn://svn.open-ils.org/ILS/trunk@2333 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../content/evergreen/main/constants.js | 5 +++ Open-ILS/xul/staff_client/server/main/menu.js | 42 +++++++++++++++++-- 2 files changed, 43 insertions(+), 4 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 606c5060ad..5d0728e3d3 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 @@ -23,6 +23,11 @@ var api = { var urls = { 'opac' : 'http://dev.gapines.org/', 'remote_checkout' : '/xul/server/circ/checkout.xul', + 'remote_debug_console' : '/xul/server/util/shell.html', + 'remote_debug_fieldmapper' : '/xul/server/util/fieldmapper.xul', + 'remote_debug_filter_console' : '/xul/server/util/filter_console.xul', + 'remote_debug_shell' : '/xul/server/util/shell.html', + 'remote_debug_xuleditor' : '/xul/server/util/xuleditor.xul', 'remote_menu_frame' : '/xul/server/main/menu_frame.xul', 'remote_patron_barcode_entry' : '/xul/server/patron/barcode_entry.xul', 'remote_patron_bills' : 'data:text/html,

Bills Here

', diff --git a/Open-ILS/xul/staff_client/server/main/menu.js b/Open-ILS/xul/staff_client/server/main/menu.js index 4b07dae99c..6d0ee5897c 100644 --- a/Open-ILS/xul/staff_client/server/main/menu.js +++ b/Open-ILS/xul/staff_client/server/main/menu.js @@ -24,6 +24,11 @@ main.menu.prototype = { obj.view.panels = obj.view.tabbox.lastChild; var cmd_map = { + 'cmd_broken' : [ + ['command','keypress'], + function() { alert('Not Yet Implemented'); } + ], + 'cmd_close_window' : [ ['command','keypress'], function() { obj.w.close(); } @@ -43,10 +48,7 @@ main.menu.prototype = { ['command','keypress'], function() { obj.close_tab(); } ], - 'cmd_broken' : [ - ['command','keypress'], - function() { alert('Not Yet Implemented'); } - ], + 'cmd_circ_checkout' : [ ['command','keypress'], function() { @@ -60,6 +62,7 @@ main.menu.prototype = { obj.set_tab(urls.xul_opac_wrapper,{},content_params); } ], + 'cmd_test_html' : [ ['command','keypress'], function() { @@ -72,6 +75,37 @@ main.menu.prototype = { obj.set_tab(urls.test_xul,{},{}); } ], + 'cmd_console' : [ + ['command','keypress'], + function() { + obj.set_tab(urls.remote_debug_console,{},{}); + } + ], + 'cmd_shell' : [ + ['command','keypress'], + function() { + obj.set_tab(urls.remote_debug_shell,{},{}); + } + ], + 'cmd_xuleditor' : [ + ['command','keypress'], + function() { + obj.set_tab(urls.remote_debug_xuleditor,{},{}); + } + ], + 'cmd_filter_console' : [ + ['command','keypress'], + function() { + obj.set_tab(urls.remote_debug_filter_console,{},{}); + } + ], + 'cmd_fieldmapper' : [ + ['command','keypress'], + function() { + obj.set_tab(urls.remote_debug_fieldmapper,{},{}); + } + ], + }; for (var i in cmd_map) { -- 2.43.2