From: pines Date: Wed, 12 Jul 2006 15:20:22 +0000 (+0000) Subject: style operator change X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=55cf8ea27b51f30f6fd7614a011ee7aaad17c0c7;p=Evergreen.git style operator change git-svn-id: svn://svn.open-ils.org/ILS/trunk@4950 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/xul/staff_client/chrome/content/main/menu.js b/Open-ILS/xul/staff_client/chrome/content/main/menu.js index c22367d1d0..3ec3578527 100644 --- a/Open-ILS/xul/staff_client/chrome/content/main/menu.js +++ b/Open-ILS/xul/staff_client/chrome/content/main/menu.js @@ -374,6 +374,7 @@ main.menu.prototype = { network.simple_request('AUTH_DELETE', [ obj.data.session.key ] ); obj.data.session = obj.data.previous_session; obj.data.stash('session'); + removeCSSClass(document.getElementById('main_tabbox'),'operator_change'); } else { if (network.get_new_session('Change Login',{'url_prefix':obj.url_prefix})) { obj.data.stash_retrieve(); @@ -382,6 +383,7 @@ main.menu.prototype = { obj.data.previous_session = JSON2js( temp_ses ); obj.data.stash('previous_session'); x.setAttribute('label', 'Change Operator: ' + obj.data.list.au[1].usrname() ); + addCSSClass(document.getElementById('main_tabbox'),'operator_change'); } } } catch(E) { diff --git a/Open-ILS/xul/staff_client/chrome/content/util/network.js b/Open-ILS/xul/staff_client/chrome/content/util/network.js index ea848c55f7..8e65d6afa7 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/network.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/network.js @@ -171,8 +171,8 @@ util.network.prototype = { window.open( url + '?login_type=staff' - + '&desc_brief=' + window.escape('Your session has expired') - + '&desc_full=' + window.escape('Please re-login. If after you have re-authenticated, you still see session expired dialogs like this one, please note where they are occuring and inform your friendly Evergreen developers of this debug information: ' + name), + + '&desc_brief=' + window.escape('Operator Change') + + '&desc_full=' + window.escape('Please enter the credentials for the new login session. Note that the previous session is still active.'), 'simple_auth' + (new Date()).toString(), 'chrome,resizable,modal,width=700,height=500' ); diff --git a/Open-ILS/xul/staff_client/chrome/skin/global.css b/Open-ILS/xul/staff_client/chrome/skin/global.css index 6b8c1e8d50..6e084c4fc7 100644 --- a/Open-ILS/xul/staff_client/chrome/skin/global.css +++ b/Open-ILS/xul/staff_client/chrome/skin/global.css @@ -12,6 +12,8 @@ iframe { background: #CDCED3 url("chrome://browser/skin/icons/box-background.png .my_bg { background: #CDCED3 url("chrome://browser/skin/icons/box-background.png") repeat-x bottom !important; } */ +.operator_change { background-color: red; } + .shrinkable_groupbox { font-weight: bold; -moz-binding: url('chrome://open_ils_staff_client/content/main/bindings.xml#caption'); } .my_overflow { overflow: auto; }