equal
deleted
inserted
replaced
1167 { |
1167 { |
1168 var body = document.getElementsByTagName('body')[0]; |
1168 var body = document.getElementsByTagName('body')[0]; |
1169 var replace = new RegExp(old_sid, 'g'); |
1169 var replace = new RegExp(old_sid, 'g'); |
1170 body.innerHTML = body.innerHTML.replace(replace, k); |
1170 body.innerHTML = body.innerHTML.replace(replace, k); |
1171 ENANO_SID = k; |
1171 ENANO_SID = k; |
1172 if ( targetpage ) |
1172 mb_current_obj.destroy(); |
1173 { |
1173 console.debug(targetpage); |
1174 mb_current_obj.destroy(); |
1174 if ( typeof(targetpage) == 'string' ) |
|
1175 { |
1175 ajaxPage(targetpage); |
1176 ajaxPage(targetpage); |
|
1177 } |
|
1178 else if ( typeof(targetpage) == 'function' ) |
|
1179 { |
|
1180 targetpage(); |
1176 } |
1181 } |
1177 }, USER_LEVEL_ADMIN); |
1182 }, USER_LEVEL_ADMIN); |
1178 ajaxLoginShowFriendlyError({ |
1183 ajaxLoginShowFriendlyError({ |
1179 error_code: 'admin_session_timed_out', |
1184 error_code: 'admin_session_timed_out', |
1180 respawn_info: {} |
1185 respawn_info: {} |
1181 }); |
1186 }); |
1182 } |
1187 } |
|
1188 |
|
1189 window.ajaxRenewSession = function() |
|
1190 { |
|
1191 ajaxDynamicReauth(false); |
|
1192 } |