WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/18/2007 03:32:54 AM (15 years ago)
Author:
ryan
Message:

Autosave fixes from mdawaffe. fixes #3601

File:
1 edited

Legend:

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

    r4689 r4760  
    88    var form = $('post');
    99    autosaveLast = form.post_title.value+form.content.value;
     10    // Keep autosave_interval in sync with edit_post().
    1011    autosavePeriodical = new PeriodicalExecuter(autosave, <?php echo apply_filters('autosave_interval', '120'); ?>);
    1112    //Disable autosave after the form has been submitted
     
    8687    form.publish ? form.publish.disabled = 'disabled' : null;
    8788    form.deletepost ? form.deletepost.disabled = 'disabled' : null;
     89    setTimeout('autosave_enable_buttons();', 1000); // Re-enable 1 sec later.  Just gives autosave a head start to avoid collisions.
    8890}
    8991
Note: See TracChangeset for help on using the changeset viewer.