[open-ils-commits] r9693 - branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main

svn at svn.open-ils.org svn at svn.open-ils.org
Sun May 25 01:13:36 EDT 2008


Author: phasefx
Date: 2008-05-25 01:13:33 -0400 (Sun, 25 May 2008)
New Revision: 9693

Modified:
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.js
   branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.xul
Log:
Patch from Bill Ott for a New Window button on the login window.  Thanks!


Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-05-23 15:41:37 UTC (rev 9692)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-05-25 05:13:33 UTC (rev 9693)
@@ -240,6 +240,25 @@
 			}, 
 			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);

Modified: branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.xul
===================================================================
--- branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2008-05-23 15:41:37 UTC (rev 9692)
+++ branches/rel_1_2/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2008-05-25 05:13:33 UTC (rev 9693)
@@ -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=" "/>
 



More information about the open-ils-commits mailing list