From: phasefx Date: Tue, 1 Aug 2006 03:14:02 +0000 (+0000) Subject: wording for session expiration X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=4232dac052392da8b8731c5ba290c51826694882;p=Evergreen.git wording for session expiration git-svn-id: svn://svn.open-ils.org/ILS/trunk@5210 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- 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 a68a1dc0f1..fa91650e47 100644 --- a/Open-ILS/xul/staff_client/chrome/content/util/network.js +++ b/Open-ILS/xul/staff_client/chrome/content/util/network.js @@ -162,7 +162,7 @@ util.network.prototype = { } }, - 'get_new_session' : function(name,xulG) { + 'get_new_session' : function(name,xulG,text) { var obj = this; try { @@ -172,8 +172,8 @@ util.network.prototype = { window.open( url + '?login_type=staff' - + '&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.'), + + '&desc_brief=' + window.escape( text ? 'Session Expired' : 'Operator Change' ) + + '&desc_full=' + window.escape( text ? 'Please enter the credentials for a new login session.' : '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' ); @@ -201,7 +201,7 @@ util.network.prototype = { var robj = req.getResultObject(); if (robj != null && robj.ilsevent && robj.ilsevent == 1001) { - if (obj.get_new_session(name)) { + if (obj.get_new_session(name,undefined,true)) { JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'}); params[0] = data.session.key; req = obj._request(app,name,params,null,o_params);