equal
deleted
inserted
replaced
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 ajaxGet(stdAjaxPrefix+'&_mode=getpage&noheaders', function() { |
188 if ( ajax.readyState == 4 && ajax.status == 200 ) { |
188 // Allow for 404 here, it's generated by the "page not found" error message |
|
189 // (even with noheaders specified, probably should be fixed) |
|
190 if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) { |
189 unsetAjaxLoading(); |
191 unsetAjaxLoading(); |
190 document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText; |
192 document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText; |
191 selectButtonMajor('article'); |
193 selectButtonMajor('article'); |
192 unselectAllButtonsMinor(); |
194 unselectAllButtonsMinor(); |
193 } |
195 } |