[open-ils-commits] [GIT] Evergreen ILS branch master updated. 2bd6d0bd6763815e3a051ee20ac4bd463ad5aad5

Evergreen Git git at git.evergreen-ils.org
Tue Aug 23 14:48:04 EDT 2011


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Evergreen ILS".

The branch, master has been updated
       via  2bd6d0bd6763815e3a051ee20ac4bd463ad5aad5 (commit)
       via  51ee67b11a4779ae77d78223678f698b345c7ae4 (commit)
      from  8404f072ed948ee315981a5f456218a2b73ec86b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2bd6d0bd6763815e3a051ee20ac4bd463ad5aad5
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Sun Jul 3 16:38:56 2011 -0400

    Menu item for "portal"
    
    To return a tab to "new" state without close/reopen
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/web/opac/locale/en-US/lang.dtd b/Open-ILS/web/opac/locale/en-US/lang.dtd
index b0e907f..ba5ce63 100644
--- a/Open-ILS/web/opac/locale/en-US/lang.dtd
+++ b/Open-ILS/web/opac/locale/en-US/lang.dtd
@@ -1072,6 +1072,8 @@
 <!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">
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
index 8d179c0..a68b9bf 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js
@@ -265,6 +265,12 @@ main.menu.prototype = {
                     }
                 }
             ],
+            'cmd_portal' : [
+                ['oncommand'],
+                function() {
+                    obj.set_tab();
+                }
+            ],
             'cmd_close_tab' : [
                 ['oncommand'],
                 function() { obj.close_tab(); }
diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
index 480ac2b..014ffab 100644
--- a/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
+++ b/Open-ILS/xul/staff_client/chrome/content/main/menu_frame_menus.xul
@@ -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" />
@@ -243,6 +244,7 @@
     <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"/>

commit 51ee67b11a4779ae77d78223678f698b345c7ae4
Author: Thomas Berezansky <tsbere at mvlc.org>
Date:   Sun Jul 3 16:50:25 2011 -0400

    Make portal name its tab.
    
    Signed-off-by: Thomas Berezansky <tsbere at mvlc.org>
    Signed-off-by: Mike Rylander <mrylander at gmail.com>

diff --git a/Open-ILS/xul/staff_client/server/index.xhtml b/Open-ILS/xul/staff_client/server/index.xhtml
index cfb5439..0068c4d 100644
--- a/Open-ILS/xul/staff_client/server/index.xhtml
+++ b/Open-ILS/xul/staff_client/server/index.xhtml
@@ -91,6 +91,7 @@
                         data.stash_retrieve(); 
                         document.getElementById('staffname').innerHTML = ", " + data.list.au[0].first_given_name(); 
                         home_ou_id = data.list.au[0].ws_ou();
+                        xulG.set_tab_name('Portal');
                 }
                 function jb_open_eg_web_page(path, label) {
                         var loc = urls.XUL_BROWSER + '?url=' + window.escape(xulG.url_prefix(urls.EG_WEB_BASE) + '/' + path);

-----------------------------------------------------------------------

Summary of changes:
 Open-ILS/web/opac/locale/en-US/lang.dtd            |    2 ++
 .../xul/staff_client/chrome/content/main/menu.js   |    6 ++++++
 .../chrome/content/main/menu_frame_menus.xul       |    2 ++
 Open-ILS/xul/staff_client/server/index.xhtml       |    1 +
 4 files changed, 11 insertions(+), 0 deletions(-)


hooks/post-receive
-- 
Evergreen ILS


More information about the open-ils-commits mailing list