[open-ils-commits] r10844 - 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
Thu Oct 16 12:35:33 EDT 2008


Author: phasefx
Date: 2008-10-16 12:35:31 -0400 (Thu, 16 Oct 2008)
New Revision: 10844

Modified:
   trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
   trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties
Log:
change the titlebar for the login window to indicate the target server version

Modified: trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-10-16 16:19:56 UTC (rev 10843)
+++ trunk/Open-ILS/xul/staff_client/chrome/content/main/main.js	2008-10-16 16:35:31 UTC (rev 10844)
@@ -2,6 +2,7 @@
 // vim:noet:sw=4:ts=4:
 
 var offlineStrings;
+var authStrings;
 
 function grant_perms(url) {
 	var perms = "UniversalXPConnect UniversalPreferencesWrite UniversalBrowserWrite UniversalPreferencesRead UniversalBrowserRead UniversalFileRead";
@@ -35,6 +36,7 @@
 
 		// Now we can safely load the strings without the cache getting wiped
 		offlineStrings = document.getElementById('offlineStrings');
+		authStrings = document.getElementById('authStrings');
 
 		if (typeof JSAN == 'undefined') {
 			throw(
@@ -233,6 +235,7 @@
 			version = 'versionless debug build';
 			document.getElementById('debug_gb').hidden = false;
 		}
+        window.title = authStrings.getFormattedString('staff.auth.titlebar.label', version);
 		//var x = document.getElementById('version_label');
 		//x.setAttribute('value','Build ID: ' + version);
 		var x = document.getElementById('about_btn');

Modified: trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties
===================================================================
--- trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties	2008-10-16 16:19:56 UTC (rev 10843)
+++ trunk/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties	2008-10-16 16:35:31 UTC (rev 10844)
@@ -12,3 +12,4 @@
 staff.auth.session.unregistered=%1$s is not registered with this server.
 staff.auth.session.login_failed=Login failed.  Please check your Server Hostname, Username, Password, and your CAPS LOCK key.
 staff.auth.session.init_false=open-ils.auth.authenticate.init returned false
+staff.auth.titlebar.label=Evergreen Staff Client - %1$s



More information about the open-ils-commits mailing list