js shell in tab. From http://www.squarefree.com/shell/ GPL/LGPL/MPL tri-licensed
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Jun 2005 14:02:38 +0000 (14:02 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 29 Jun 2005 14:02:38 +0000 (14:02 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@968 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/main/app_shell_menus_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/main/app_shell_overlay.xul
Evergreen/staff_client/chrome/content/evergreen/util/spawn_win.js
Evergreen/staff_client/chrome/locale/en-US/evergreen/OpenILS.properties

index 7721b03..681c0f1 100644 (file)
                <menuitem label="stub" />
                <menuitem label="Test Module" command="cmd_test"/>
                <menuitem label="Javscript Console" command="cmd_console"/>
+               <menuitem label="Javscript Shell" command="cmd_shell"/>
                <menuitem label="XUL Test" command="cmd_xuleditor"/>
        </menupopup>
 </menu>
index 7e470e8..a6b24ea 100644 (file)
@@ -55,6 +55,9 @@
        <command id="cmd_console" oncommand="
                mw.spawn_javascript_console(document,true,{}); "/>
 
+       <command id="cmd_shell" oncommand="
+               mw.spawn_javascript_shell(document,true,{}); "/>
+
        <command id="cmd_xuleditor" oncommand="
                mw.spawn_xuleditor(document,true,{}); "/>
 
index f128e56..f39b35c 100644 (file)
@@ -147,3 +147,8 @@ function spawn_xuleditor(d,tab_flag,passthru_params) {
        var chrome = 'chrome://evergreen/content/util/xuledit.xul';
        spawn_interface(d,tab_flag,'main_tabbox',chrome,getString('xuleditor_label'),passthru_params);
 }
+
+function spawn_javascript_shell(d,tab_flag,passthru_params) {
+       var chrome = 'chrome://evergreen/content/util/shell.html';
+       spawn_interface(d,tab_flag,'main_tabbox',chrome,getString('javascript_shell_label'),passthru_params);
+}
index 300ec6a..ce2dd35 100644 (file)
@@ -15,4 +15,5 @@ copy_stat_cat_editor_interface_label=COPY STAT-CATS
 patron_stat_cat_editor_interface_label=PATRON STAT-CATS
 z39_50_import_interface_label=Z39.50 IMPORT
 javascript_console_label=CONSOLE
+javascript_shell_label=JS SHELL
 xuleditor_label=XUL TEST