diff -r 491314c44d23 -r dd80cde96a6c includes/clientside/static/editor.js --- a/includes/clientside/static/editor.js Thu Aug 21 08:24:37 2008 -0400 +++ b/includes/clientside/static/editor.js Thu Aug 21 11:24:56 2008 -0400 @@ -4,6 +4,7 @@ var AUTOSAVE_TIMEOUT = 15; var AutosaveTimeoutObj = null; var editor_img_path = cdnPath + '/images/editor'; +var editor_save_lock = false; window.ajaxEditor = function(revid) { @@ -521,6 +522,11 @@ { if ( !is_draft ) ajaxSetEditorLoading(); + if ( is_draft && editor_save_lock ) + return false; + else + editor_save_lock = true; + var ta_content = ( text_override ) ? text_override : $dynano('ajaxEditArea').getContent(); if ( !is_draft && ( ta_content == '' || ta_content == '
' || ta_content == '' ) ) @@ -659,6 +665,7 @@ // The save was successful; reset flags and make another request for the new page content setAjaxLoading(); editor_open = false; + editor_save_lock = false; enableUnload(); changeOpac(0, 'ajaxEditContainer'); ajaxGet(stdAjaxPrefix + '&_mode=getpage&noheaders', function()