diff -r 7468a663315f -r 35d94240a197 includes/clientside/static/editor.js --- a/includes/clientside/static/editor.js Fri Feb 08 23:20:20 2008 -0500 +++ b/includes/clientside/static/editor.js Sun Feb 10 19:35:06 2008 -0500 @@ -54,7 +54,7 @@ setAjaxLoading(); ajaxGet(stdAjaxPrefix + '&_mode=getsource', function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { unsetAjaxLoading(); @@ -443,7 +443,7 @@ json_packet = ajaxEscape(toJSONString(json_packet)); ajaxPost(stdAjaxPrefix + '&_mode=savepage_json', 'r=' + json_packet, function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { ajaxUnSetEditorLoading(); var response = String(ajax.responseText + ''); @@ -499,7 +499,7 @@ changeOpac(0, 'ajaxEditContainer'); ajaxGet(stdAjaxPrefix + '&_mode=getpage&noheaders', function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { unsetAjaxLoading(); selectButtonMajor('article'); @@ -526,7 +526,7 @@ } ajaxPost(stdAjaxPrefix + '&_mode=preview', 'text=' + ta_content, function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { ajaxUnSetEditorLoading(); changeOpac(0, 'enano_editor_preview'); @@ -551,7 +551,7 @@ ajaxSetEditorLoading(); ajaxGet(stdAjaxPrefix + '&_mode=getsource', function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { ajaxUnSetEditorLoading(); @@ -601,7 +601,7 @@ } ajaxPost(stdAjaxPrefix + '&_mode=diff_cur', 'text=' + ta_content, function() { - if ( ajax.readyState == 4 ) + if ( ajax.readyState == 4 && ajax.status == 200 ) { ajaxUnSetEditorLoading(); changeOpac(0, 'enano_editor_preview');