[open-ils-commits] r9695 - in trunk/Open-ILS/xul/staff_client/chrome: content/main locale/en-US

svn at svn.open-ils.org svn at svn.open-ils.org
Sun May 25 01:14:22 EDT 2008


Author: phasefx
Date: 2008-05-25 01:14:19 -0400 (Sun, 25 May 2008)
New Revision: 9695

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
   trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul
   trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
Log:
I18N version of a patch from Bill Ott for a New Window button on the login window.  Thanks!

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-05-25 05:13:56 UTC (rev 9694)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-05-25 05:14:19 UTC (rev 9695)
@@ -246,6 +246,25 @@
 			}, 
 			false
 		);
+
+		var y = document.getElementById('new_window_btn');
+		y.setAttribute('label', offlineStrings.getString('main.new_window_btn.label'));
+		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 ( offlineStrings.getString('main.new_window_btn.login_first_warning') );
+				}
+			},
+			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: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2008-05-25 05:13:56 UTC (rev 9694)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.xul	2008-05-25 05:14:19 UTC (rev 9695)
@@ -85,6 +85,9 @@
 		<hbox>
 			<label id="version_label"/>
 			<button id="about_btn"/>
+
+			<label id="new_window_label"/>
+			<button id="new_window_btn"/>
 		</hbox>
 		<label value=" "/>
 

Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties	2008-05-25 05:13:56 UTC (rev 9694)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/offline.properties	2008-05-25 05:14:19 UTC (rev 9695)
@@ -139,6 +139,8 @@
 main.on_debug.clear_cache=cache cleared
 main.on_debug.debug=debug the debug :D
 main.about_btn.label=About this client...
+main.new_window_btn.label=Open New Window
+main.new_window_btn.login_first_warning=Please login first!
 main.settings.migrate=This version of the staff client stores local settings in a different location than your previous installation.  Should we attempt to migrate these settings?
 main.settings.migrate.failed=WARNING: Unable to migrate legacy settings.  The settings and configuration files appear to exist in multiple locations. \nTo resolve this problem manually, please consider:\n\t%1$s\nwhich is in the directory where we want to store settings for the current operating system account, and:\n\t%2$s\nwhich is where we used to store such information.\n
 main.settings.migrate.confirm=Move the settings and configuration files from\n%1$s\nto\n%2$s?



More information about the open-ils-commits mailing list