includes/clientside/static/ajax.js
changeset 103 a8891e108c95
parent 87 570f68c3fe36
child 118 0c5efda996bf
equal deleted inserted replaced
102:d807dcd7aed7 103:a8891e108c95
   807         window.location = loc;
   807         window.location = loc;
   808     }, 9);
   808     }, 9);
   809     return false;
   809     return false;
   810   }
   810   }
   811   var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'PageManager&source=ajax&page_id=' + ajaxEscape(title));
   811   var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'PageManager&source=ajax&page_id=' + ajaxEscape(title));
       
   812   window.location = loc;
       
   813 }
       
   814 
       
   815 function ajaxAdminUser(username)
       
   816 {
       
   817   // IE <6 pseudo-compatibility
       
   818   if ( KILL_SWITCH )
       
   819     return true;
       
   820   if ( auth_level < USER_LEVEL_ADMIN )
       
   821   {
       
   822     ajaxPromptAdminAuth(function(k) {
       
   823       ENANO_SID = k;
       
   824       auth_level = USER_LEVEL_ADMIN;
       
   825       var loc = String(window.location + '');
       
   826       window.location = append_sid(loc);
       
   827       var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'UserManager&src=get&user=' + ajaxEscape(username));
       
   828       if ( (ENANO_SID + ' ').length > 1 )
       
   829         window.location = loc;
       
   830     }, 9);
       
   831     return false;
       
   832   }
       
   833   var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'UserManager&src=get&user=' + ajaxEscape(username));
   812   window.location = loc;
   834   window.location = loc;
   813 }
   835 }
   814 
   836 
   815 function ajaxDisableEmbeddedPHP()
   837 function ajaxDisableEmbeddedPHP()
   816 {
   838 {