From cc06de6709177266c87e8e96c6b88fd92b1854ba Mon Sep 17 00:00:00 2001 From: phasefx Date: Fri, 9 Dec 2005 21:15:50 +0000 Subject: [PATCH] authtime git-svn-id: svn://svn.open-ils.org/ILS/trunk@2320 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../xul/staff_client/chrome/content/evergreen/auth/session.js | 1 + .../xul/staff_client/chrome/content/evergreen/main/main.js | 4 +++- Open-ILS/xul/staff_client/defaults/preferences/evergreen.js | 2 +- Open-ILS/xul/staff_client/server/main/menu.js | 4 ++-- 4 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js index 54c0c4e761..6a3f24d7c1 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js @@ -39,6 +39,7 @@ auth.session.prototype = { if (robj.ilsevent == 0) { this.key = robj.payload.authtoken; + this.authtime = robj.payload.authtime; } else { var error = robj.ilsevent + ' : ' + this.error.get_ilsevent( robj.ilsevent ); this.error.sdump('D_AUTH','auth.session.init: ' + error + '\n'); diff --git a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/main.js b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/main.js index 7fac91bef5..7fc8455b0b 100644 --- a/Open-ILS/xul/staff_client/chrome/content/evergreen/main/main.js +++ b/Open-ILS/xul/staff_client/chrome/content/evergreen/main/main.js @@ -52,7 +52,9 @@ function main_init() { G.OpenILS.data._debug_stash(); G.window.open(urls.opac + urls.remote_menu_frame - + '?session='+mw.escape(G.auth.session.key),'test','chrome'); + + '?session='+mw.escape(G.auth.session.key) + + '&authtime='+mw.escape(G.auth.session.authtime), + 'test','chrome'); } G.OpenILS.data.init(); } diff --git a/Open-ILS/xul/staff_client/defaults/preferences/evergreen.js b/Open-ILS/xul/staff_client/defaults/preferences/evergreen.js index 3ab51d4254..1a3df8f967 100644 --- a/Open-ILS/xul/staff_client/defaults/preferences/evergreen.js +++ b/Open-ILS/xul/staff_client/defaults/preferences/evergreen.js @@ -22,5 +22,5 @@ pref("javascript.options.strict",false); pref("javascript.options.showInConsole",true); pref("nglayout.debug.disable_xul_cache",true); pref("nglayout.debug.disable_xul_fastload",true); - +pref("browser.xul.error_pages.enabled",true); diff --git a/Open-ILS/xul/staff_client/server/main/menu.js b/Open-ILS/xul/staff_client/server/main/menu.js index cb2a22f8a2..285f537661 100644 --- a/Open-ILS/xul/staff_client/server/main/menu.js +++ b/Open-ILS/xul/staff_client/server/main/menu.js @@ -14,6 +14,7 @@ main.menu.prototype = { 'init' : function( params ) { var session = params['session']; + var authtime = params['authtime']; var obj = this; obj.view = {}; @@ -55,8 +56,7 @@ main.menu.prototype = { 'cmd_search_opac' : [ ['command','keypress'], function() { - obj.set_tab(urls.xul_opac_wrapper,{},{ 'authtoken' : session }); - //obj.set_tab('test.html',{},{ 'authtoken' : session }); + obj.set_tab(urls.xul_opac_wrapper,{},{ 'authtoken' : session, 'authtime' : authtime }); } ] }; -- 2.43.2