Make WordPress Core


Ignore:
Timestamp:
08/16/2006 06:56:35 AM (20 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/js/autosave.js.php

    r4101 r4102  
    1515
    1616function autosave_start_timer() {
     17    var form = $('post');
     18    if ( typeof tinyMCE != "undefined" || tinyMCE.configs.length > 0 )
     19        tinyMCE.wpTriggerSave();
     20    autosaveLast = form.post_title.value+form.content.value;
    1721    setTimeout("autosave_timer()", <?php echo apply_filters('autosave_start_delay', '60000') ?>);
    1822}
Note: See TracChangeset for help on using the changeset viewer.