Don't autosave if no changes. Props masquerade. fixes #3042

git-svn-id: http://svn.automattic.com/wordpress/trunk@4103 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2006-08-16 07:28:24 +00:00
parent 1a9df1c2d5
commit 8bfa80dcf4

View File

@ -15,8 +15,6 @@ function autosave_timer() {
function autosave_start_timer() {
var form = $('post');
if ( typeof tinyMCE != "undefined" || tinyMCE.configs.length > 0 )
tinyMCE.wpTriggerSave();
autosaveLast = form.post_title.value+form.content.value;
setTimeout("autosave_timer()", <?php echo apply_filters('autosave_start_delay', '60000') ?>);
}
@ -131,4 +129,4 @@ function autosave() {
else
autosaveAjax.onCompletion = autosave_saved;
autosaveAjax.runAJAX();
}
}