From: phasefx Date: Sun, 1 Feb 2009 06:30:01 +0000 (+0000) Subject: upgrade javascript shell and give it a chrome entrypoint X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=949db1270a19b9e93e29c1828e74ef4630e41e4b;p=Evergreen.git upgrade javascript shell and give it a chrome entrypoint git-svn-id: svn://svn.open-ils.org/ILS/branches/staff-client-experiment@12032 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd index 7741cc4493..03c27bf7cd 100644 --- a/Open-ILS/web/opac/locale/en-US/lang.dtd +++ b/Open-ILS/web/opac/locale/en-US/lang.dtd @@ -571,6 +571,8 @@ + + @@ -597,6 +599,8 @@ + + diff --git a/Open-ILS/xul/staff_client/chrome/content/auth/controller.js b/Open-ILS/xul/staff_client/chrome/content/auth/controller.js index 5d22a8c4fe..c48565c83a 100644 --- a/Open-ILS/xul/staff_client/chrome/content/auth/controller.js +++ b/Open-ILS/xul/staff_client/chrome/content/auth/controller.js @@ -78,6 +78,12 @@ auth.controller.prototype = { start_chrome_list(); } ], + 'cmd_js_shell' : [ + ['command'], + function() { + start_js_shell(); + } + ], 'cmd_override' : [ ['command'], function() { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index 8e304cd694..79a4138329 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -64,6 +64,14 @@ function start_chrome_list() { ); }; +function start_js_shell() { + setTimeout( + function() { + try { window.open('chrome://open_ils_staff_client/content/util/shell.html','shell','chrome,resizable,scrollbars'); } catch(E) { alert(E); } + }, 0 + ); +}; + function main_init() { dump('entering main_init()\n'); try { diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.xul b/Open-ILS/xul/staff_client/chrome/content/main/main.xul index 2330014bf2..a692c8f465 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.xul +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.xul @@ -74,6 +74,7 @@ +