Patch from Bill Ott for a New Window button on the login window. Thanks!
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 25 May 2008 05:13:56 +0000 (05:13 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 25 May 2008 05:13:56 +0000 (05:13 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_2_2@9694 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/main.js
Open-ILS/xul/staff_client/chrome/content/main/main.xul

index eec3f72..b17c215 100644 (file)
@@ -240,6 +240,25 @@ function main_init() {
                        }, 
                        false
                );
+
+               var y = document.getElementById('new_window_btn');
+               y.setAttribute('label','Open New Window');
+               y.addEventListener(
+                       'command',
+                       function() {
+                               if (G.data.session) {
+                                       try {
+                                               G.window.open('chrome://open_ils_staff_client/content/main/menu_frame.xul?server=' +
+                                                       G.data.server,'main','chrome,resizable' );
+
+                                       } catch(E) { alert(E); }
+                               } else {
+                                       alert ('Please login first!')
+                               }
+                       },
+                       false
+               );
+
                if ( found_ws_info_in_Achrome() ) {
                        //var hbox = x.parentNode; var b = document.createElement('button'); 
                        //b.setAttribute('label','Migrate legacy settings'); hbox.appendChild(b);
index b316fdd..f3fc59d 100644 (file)
@@ -83,6 +83,9 @@
                <hbox>
                        <label id="version_label"/>
                        <button id="about_btn"/>
+
+                       <label id="new_window_label"/>
+                       <button id="new_window_btn"/>
                </hbox>
                <label value=" "/>