Don't autosave if no changes. Props masquerade. fixes #3042
git-svn-id: https://develop.svn.wordpress.org/trunk@4103 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a31b264ac
commit
f2e7bbb410
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user