equal
deleted
inserted
replaced
177 function ajaxReset() |
177 function ajaxReset() |
178 { |
178 { |
179 // IE <6 pseudo-compatibility |
179 // IE <6 pseudo-compatibility |
180 if ( KILL_SWITCH ) |
180 if ( KILL_SWITCH ) |
181 return true; |
181 return true; |
182 var ns_id = strToPageID(title); |
182 var ns_id = strToPageID(physical_title); |
183 if ( ns_id[1] == 'Special' || ns_id[1] == 'Admin' ) |
183 if ( ns_id[1] == 'Special' || ns_id[1] == 'Admin' ) |
184 return false; |
184 return false; |
185 enableUnload(); |
185 enableUnload(); |
186 setAjaxLoading(); |
186 setAjaxLoading(); |
187 ajaxGet(stdAjaxPrefix+'&_mode=getpage&noheaders', function() { |
187 var redir = ( disable_redirect ) ? '&redirect=no' : ''; |
|
188 ajaxGet(scriptPath + '/ajax.php?title=' + physical_title +'&_mode=getpage&noheaders' + redir, function() { |
188 // Allow for 404 here, it's generated by the "page not found" error message |
189 // Allow for 404 here, it's generated by the "page not found" error message |
189 // (even with noheaders specified, probably should be fixed) |
190 // (even with noheaders specified, probably should be fixed) |
190 if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) { |
191 if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) { |
191 unsetAjaxLoading(); |
192 unsetAjaxLoading(); |
192 document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText; |
193 document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText; |