authtime
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 21:15:50 +0000 (21:15 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 9 Dec 2005 21:15:50 +0000 (21:15 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2320 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/evergreen/auth/session.js
Open-ILS/xul/staff_client/chrome/content/evergreen/main/main.js
Open-ILS/xul/staff_client/defaults/preferences/evergreen.js
Open-ILS/xul/staff_client/server/main/menu.js

index 54c0c4e..6a3f24d 100644 (file)
@@ -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');
index 7fac91b..7fc8455 100644 (file)
@@ -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();
                }
index 3ab51d4..1a3df8f 100644 (file)
@@ -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);
 
index cb2a22f..285f537 100644 (file)
@@ -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 });
                                }
                        ]
                };