includes/clientside/static/ajax.js
changeset 60 71b50f8c8f85
parent 57 b354deeaa4c4
child 76 608dee512bf0
equal deleted inserted replaced
59:7c4a851fb5c5 60:71b50f8c8f85
   781   // IE <6 pseudo-compatibility
   781   // IE <6 pseudo-compatibility
   782   if ( KILL_SWITCH )
   782   if ( KILL_SWITCH )
   783     return true;
   783     return true;
   784   ajaxPromptAdminAuth(function(k) {
   784   ajaxPromptAdminAuth(function(k) {
   785       window.location.reload();
   785       window.location.reload();
   786     }, 2);
   786     }, USER_LEVEL_MEMBER);
       
   787 }
       
   788 
       
   789 function ajaxStartAdminLogin()
       
   790 {
       
   791   // IE <6 pseudo-compatibility
       
   792   if ( KILL_SWITCH )
       
   793     return true;
       
   794   if ( auth_level < USER_LEVEL_ADMIN )
       
   795   {
       
   796     ajaxPromptAdminAuth(function(k) {
       
   797       ENANO_SID = k;
       
   798       auth_level = USER_LEVEL_ADMIN;
       
   799       var loc = makeUrlNS('Special', 'Administration');
       
   800       if ( (ENANO_SID + ' ').length > 1 )
       
   801         window.location = loc;
       
   802     }, USER_LEVEL_ADMIN);
       
   803     return false;
       
   804   }
       
   805   var loc = makeUrlNS('Special', 'Administration');
       
   806   window.location = loc;
   787 }
   807 }
   788 
   808 
   789 function ajaxAdminPage()
   809 function ajaxAdminPage()
   790 {
   810 {
   791   // IE <6 pseudo-compatibility
   811   // IE <6 pseudo-compatibility