diff -r 7468a663315f -r 35d94240a197 includes/clientside/sbedit.js --- a/includes/clientside/sbedit.js Fri Feb 08 23:20:20 2008 -0500 +++ b/includes/clientside/sbedit.js Sun Feb 10 19:35:06 2008 -0500 @@ -4,7 +4,7 @@ disenable_currentBlock = document.getElementById('disabled_'+id); ajaxGet(makeUrlNS('Special', 'EditSidebar', 'action=disenable&ajax=true&noheaders&id='+id), function() { - if(ajax.readyState == 4) + if ( ajax.readyState == 4 && ajax.status == 200 ) { if(ajax.responseText == 'GOOD') { @@ -31,7 +31,7 @@ delete_currentBlock = { 0 : id, 1 : oElm }; ajaxGet(makeUrlNS('Special', 'EditSidebar', 'action=delete&ajax=true&noheaders&id='+id), function() { - if(ajax.readyState == 4) + if ( ajax.readyState == 4 && ajax.status == 200 ) { if(ajax.responseText == 'GOOD') { @@ -53,7 +53,7 @@ blockEdit_current = { 0 : id, 1 : oElm }; ajaxGet(makeUrlNS('Special', 'EditSidebar', 'action=getsource&noheaders&id='+id), function() { - if(ajax.readyState == 4) + if ( ajax.readyState == 4 && ajax.status == 200 ) { id = blockEdit_current[0]; oElm = blockEdit_current[1]; @@ -100,7 +100,7 @@ blockSave_current = { 0 : id, 1 : oElm }; ajaxPost(makeUrlNS('Special', 'EditSidebar', 'noheaders&action=save&id='+id), 'content='+taContent, function() { - if(ajax.readyState == 4) + if ( ajax.readyState == 4 && ajax.status == 200 ) { id = blockSave_current[0]; oElm = blockSave_current[1]; @@ -172,7 +172,7 @@ newname = ajaxEscape(newname); ajaxPost(makeUrlNS('Special', 'EditSidebar', 'ajax&noheaders&action=rename&id='+id), 'newname=' +newname, function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { parent.removeChild(img); if ( ajax.responseText != 'GOOD' )