includes/clientside/static/ajax.js
changeset 430 ec90736b9cb9
parent 420 301f546688d1
child 436 242353360e37
equal deleted inserted replaced
426:f5718d7c2a6a 430:ec90736b9cb9
   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     }