Menu item for "portal"
authorThomas Berezansky <tsbere@mvlc.org>
Sun, 3 Jul 2011 20:38:56 +0000 (16:38 -0400)
committerThomas Berezansky <tsbere@mvlc.org>
Tue, 5 Jul 2011 16:59:13 +0000 (12:59 -0400)
To return a tab to "new" state without close/reopen

Signed-off-by: Thomas Berezansky <tsbere@mvlc.org>
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 4043024..6660ad1 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 fc85a8f..cdf8af1 100644 (file)
@@ -255,6 +255,12 @@ main.menu.prototype = {
                     }
                 }
             ],
+            'cmd_portal' : [
+                ['oncommand'],
+                function() {
+                    obj.set_tab();
+                }
+            ],
             'cmd_close_tab' : [
                 ['oncommand'],
                 function() { obj.close_tab(); }
index 8c79bbf..ee57bd6 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"/>