Menu item for "portal"
authorThomas Berezansky <tsbere@mvlc.org>
Sun, 3 Jul 2011 20:38:56 +0000 (16:38 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 23 Aug 2011 18:43:13 +0000 (14:43 -0400)
To return a tab to "new" state without close/reopen

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
Signed-off-by: Mike Rylander <mrylander@gmail.com>
Open-ILS/web/opac/locale/en-US/lang.dtd
Open-ILS/xul/staff_client/chrome/content/main/menu.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul

index b0e907f..ba5ce63 100644 (file)
 <!ENTITY staff.main.menu.file.new.label "New Window">
 <!ENTITY staff.main.menu.file.new_tab.accesskey "T">
 <!ENTITY staff.main.menu.file.new_tab.label "New Tab">
+<!ENTITY staff.main.menu.file.portal.label "Home">
+<!ENTITY staff.main.menu.file.portal.accesskey "H">
 <!ENTITY staff.main.menu.file.join_tabs_horizontal.accesskey "J">
 <!ENTITY staff.main.menu.file.join_tabs_horizontal.label "Join Tabs (Horizontal)">
 <!ENTITY staff.main.menu.file.join_tabs_vertical.accesskey "V">
index 8d179c0..a68b9bf 100644 (file)
@@ -265,6 +265,12 @@ main.menu.prototype = {
                     }
                 }
             ],
+            'cmd_portal' : [
+                ['oncommand'],
+                function() {
+                    obj.set_tab();
+                }
+            ],
             'cmd_close_tab' : [
                 ['oncommand'],
                 function() { obj.close_tab(); }
index 480ac2b..014ffab 100644 (file)
@@ -14,6 +14,7 @@
     <command id="cmd_close_tab" />
     <command id="cmd_close_all_tabs" />
     <command id="cmd_shutdown" />
+    <command id="cmd_portal" />
 
     <command id="cmd_edit_copy_buckets" />
     <command id="cmd_edit_volume_buckets" />
     <menupopup id="main.menu.file.popup">
         <menuitem label="&staff.main.menu.file.new.label;" accesskey="&staff.main.menu.file.new.accesskey;" command="cmd_new_window"/>
         <menuitem label="&staff.main.menu.file.new_tab.label;" accesskey="&staff.main.menu.file.new_tab.accesskey;" command="cmd_new_tab"/>
+        <menuitem label="&staff.main.menu.file.portal.label;" accesskey="&staff.main.menu.file.portal.accesskey;" command="cmd_portal"/>
         <menuseparator />
         <menuitem label="&staff.main.menu.file.close_tab.label;" accesskey="&staff.main.menu.file.close_tab.accesskey;" command="cmd_close_tab"/>
         <menuitem label="&staff.main.menu.tabs.close;" accesskey="&staff.main.menu.tabs.close.accesskey;" command="cmd_close_all_tabs"/>