Make WordPress Core

Changeset 4102


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

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

Location:
trunk/wp-includes
Files:
2 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}
  • trunk/wp-includes/script-loader.php

    r4101 r4102  
    1919        $this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
    2020        $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
    21         $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4101');
     21        $this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4102');
    2222        if ( is_admin() ) {
    2323            $this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
Note: See TracChangeset for help on using the changeset viewer.