includes/clientside/static/login.js
changeset 794 720516162012
parent 793 c0724bf6039b
child 811 5c807fe77020
--- a/includes/clientside/static/login.js	Mon Dec 22 21:26:19 2008 -0500
+++ b/includes/clientside/static/login.js	Mon Dec 22 21:54:30 2008 -0500
@@ -1169,14 +1169,24 @@
       var replace = new RegExp(old_sid, 'g');
       body.innerHTML = body.innerHTML.replace(replace, k);
       ENANO_SID = k;
-      if ( targetpage )
+      mb_current_obj.destroy();
+      console.debug(targetpage);
+      if ( typeof(targetpage) == 'string' )
       {
-        mb_current_obj.destroy();
         ajaxPage(targetpage);
       }
+      else if ( typeof(targetpage) == 'function' )
+      {
+        targetpage();
+      }
     }, USER_LEVEL_ADMIN);
   ajaxLoginShowFriendlyError({
       error_code: 'admin_session_timed_out',
       respawn_info: {}
   });
 }
+
+window.ajaxRenewSession = function()
+{
+  ajaxDynamicReauth(false);
+}