includes/clientside/static/ajax.js
changeset 430 ec90736b9cb9
parent 420 301f546688d1
child 436 242353360e37
--- a/includes/clientside/static/ajax.js	Sun Feb 17 20:19:17 2008 -0500
+++ b/includes/clientside/static/ajax.js	Mon Feb 18 16:27:28 2008 -0500
@@ -185,7 +185,9 @@
   enableUnload();
   setAjaxLoading();
   ajaxGet(stdAjaxPrefix+'&_mode=getpage&noheaders', function() {
-    if ( ajax.readyState == 4 && ajax.status == 200 ) {
+    // Allow for 404 here, it's generated by the "page not found" error message
+    // (even with noheaders specified, probably should be fixed)
+    if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) {
       unsetAjaxLoading();
       document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText;
       selectButtonMajor('article');