includes/clientside/static/ajax.js
changeset 436 242353360e37
parent 430 ec90736b9cb9
child 481 07bf15b066bc
equal deleted inserted replaced
435:a434d60e525d 436:242353360e37
   748     }, true);
   748     }, true);
   749 }
   749 }
   750 
   750 
   751 function ajaxStartLogin()
   751 function ajaxStartLogin()
   752 {
   752 {
   753   // IE <6 pseudo-compatibility
   753   ajaxLogonToMember();
   754   if ( KILL_SWITCH )
       
   755     return true;
       
   756   ajaxPromptAdminAuth(function(k) {
       
   757       window.location.reload();
       
   758     }, USER_LEVEL_MEMBER);
       
   759 }
   754 }
   760 
   755 
   761 function ajaxStartAdminLogin()
   756 function ajaxStartAdminLogin()
   762 {
   757 {
   763   // IE <6 pseudo-compatibility
   758   // IE <6 pseudo-compatibility
   764   if ( KILL_SWITCH )
   759   if ( KILL_SWITCH )
   765     return true;
   760     return true;
   766   if ( auth_level < USER_LEVEL_ADMIN )
   761   if ( auth_level < USER_LEVEL_ADMIN )
   767   {
   762   {
   768     ajaxPromptAdminAuth(function(k) {
   763     ajaxLoginInit(function(k) {
   769       ENANO_SID = k;
   764       ENANO_SID = k;
   770       auth_level = USER_LEVEL_ADMIN;
   765       auth_level = USER_LEVEL_ADMIN;
   771       var loc = makeUrlNS('Special', 'Administration');
   766       var loc = makeUrlNS('Special', 'Administration');
   772       if ( (ENANO_SID + ' ').length > 1 )
   767       if ( (ENANO_SID + ' ').length > 1 )
   773         window.location = loc;
   768         window.location = loc;