change the titlebar for the login window to indicate the target server version
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Oct 2008 16:35:31 +0000 (16:35 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Oct 2008 16:35:31 +0000 (16:35 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10844 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/main/main.js
Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties

index 9faf49e..ab397f9 100644 (file)
@@ -2,6 +2,7 @@ dump('entering main/main.js\n');
 // 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 @@ function main_init() {
 
                // 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 @@ function main_init() {
                        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');
index e3e88d2..b505d7d 100644 (file)
@@ -12,3 +12,4 @@ staff.auth.controller.confirm_close=Are you sure you would like to exit the prog
 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