1245 } |
1245 } |
1246 var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'PageManager&source=ajax&page_id=' + ajaxEscape(title)); |
1246 var loc = makeUrlNS('Special', 'Administration', 'module=' + namespace_list['Admin'] + 'PageManager&source=ajax&page_id=' + ajaxEscape(title)); |
1247 window.location = loc; |
1247 window.location = loc; |
1248 } |
1248 } |
1249 |
1249 |
1250 var navto_ns; |
1250 window.ajaxLoginNavTo = function(namespace, page_id, min_level, get) |
1251 var navto_pg; |
|
1252 var navto_ul; |
|
1253 |
|
1254 window.ajaxLoginNavTo = function(namespace, page_id, min_level) |
|
1255 { |
1251 { |
1256 // IE <6 pseudo-compatibility |
1252 // IE <6 pseudo-compatibility |
1257 if ( KILL_SWITCH ) |
1253 if ( KILL_SWITCH ) |
1258 return true; |
1254 return true; |
1259 navto_pg = page_id; |
1255 void(namespace); |
1260 navto_ns = namespace; |
1256 void(page_id); |
1261 navto_ul = min_level; |
1257 get = get || false; |
1262 if ( auth_level < min_level ) |
1258 if ( auth_level < min_level ) |
1263 { |
1259 { |
1264 ajaxPromptAdminAuth(function(k) { |
1260 ajaxPromptAdminAuth(function(k) { |
1265 ENANO_SID = k; |
1261 ENANO_SID = k; |
1266 auth_level = navto_ul; |
1262 auth_level = min_level; |
1267 var loc = makeUrlNS(navto_ns, navto_pg); |
1263 var loc = makeUrlNS(namespace, page_id, get); |
1268 if ( (ENANO_SID + ' ').length > 1 ) |
1264 if ( (ENANO_SID + ' ').length > 1 ) |
1269 window.location = loc; |
1265 window.location = loc; |
1270 }, min_level); |
1266 }, min_level); |
1271 return false; |
1267 return false; |
1272 } |
1268 } |
1273 var loc = makeUrlNS(navto_ns, navto_pg); |
1269 var loc = makeUrlNS(namespace, page_id, get); |
1274 window.location = loc; |
1270 window.location = loc; |
1275 } |
1271 } |
1276 |
1272 |
1277 window.ajaxAdminUser = function(username) |
1273 window.ajaxAdminUser = function(username) |
1278 { |
1274 { |