includes/clientside/static/ajax.js
changeset 800 9cdfe82c56cd
parent 779 609e35845ec3
child 823 4596c40aaa94
equal deleted inserted replaced
799:4629ad98ee88 800:9cdfe82c56cd
    11   if ( ns_id[1] == 'Special' || ns_id[1] == 'Admin' )
    11   if ( ns_id[1] == 'Special' || ns_id[1] == 'Admin' )
    12     return false;
    12     return false;
    13   enableUnload();
    13   enableUnload();
    14   setAjaxLoading();
    14   setAjaxLoading();
    15   var redir = ( disable_redirect ) ? '&redirect=no' : '';
    15   var redir = ( disable_redirect ) ? '&redirect=no' : '';
    16   ajaxGet(scriptPath + '/ajax.php?title=' + physical_title +'&_mode=getpage&noheaders' + redir, function() {
    16   ajaxGet(append_sid(scriptPath + '/ajax.php?title=' + physical_title +'&_mode=getpage&noheaders' + redir), function() {
    17     // Allow for 404 here, it's generated by the "page not found" error message
    17     // Allow for 404 here, it's generated by the "page not found" error message
    18     // (even with noheaders specified, probably should be fixed)
    18     // (even with noheaders specified, probably should be fixed)
    19     if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) {
    19     if ( ajax.readyState == 4 && ( ajax.status == 200 || ajax.status == 404 ) ) {
    20       unsetAjaxLoading();
    20       unsetAjaxLoading();
    21       document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText;
    21       document.getElementById('ajaxEditContainer').innerHTML = ajax.responseText;