From: phasefx Date: Thu, 16 Oct 2008 16:35:31 +0000 (+0000) Subject: change the titlebar for the login window to indicate the target server version X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=86bab2d9be0b2aa9cf8c52c58aa57973e9970740;p=Evergreen.git change the titlebar for the login window to indicate the target server version git-svn-id: svn://svn.open-ils.org/ILS/trunk@10844 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/main.js b/Open-ILS/xul/staff_client/chrome/content/main/main.js index 9faf49ed2d..ab397f9715 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/main.js @@ -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'); diff --git a/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties b/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties index e3e88d2041..b505d7d896 100644 --- a/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties +++ b/Open-ILS/xul/staff_client/chrome/locale/en-US/auth.properties @@ -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