diff options
| author | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-18 11:27:26 +0000 |
|---|---|---|
| committer | donncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36> | 2007-01-18 11:27:26 +0000 |
| commit | acdcdacc2fe65422a3f52e3320283feba13d9c40 (patch) | |
| tree | bad2b7ef0aef1f89e9abc6bafa0264a3ba302f46 /wp-includes | |
| parent | 26b0392f7796ed87daa7725a33ac87057b3b2a4c (diff) | |
| download | wordpress-mu-acdcdacc2fe65422a3f52e3320283feba13d9c40.tar.gz wordpress-mu-acdcdacc2fe65422a3f52e3320283feba13d9c40.tar.xz wordpress-mu-acdcdacc2fe65422a3f52e3320283feba13d9c40.zip | |
WP Merge to rev 4763
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@851 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes')
| -rw-r--r-- | wp-includes/js/autosave-js.php | 2 | ||||
| -rw-r--r-- | wp-includes/script-loader.php | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/wp-includes/js/autosave-js.php b/wp-includes/js/autosave-js.php index 67fcde7..e30134d 100644 --- a/wp-includes/js/autosave-js.php +++ b/wp-includes/js/autosave-js.php @@ -7,6 +7,7 @@ var autosavePeriodical; function autosave_start_timer() { var form = $('post'); autosaveLast = form.post_title.value+form.content.value; + // Keep autosave_interval in sync with edit_post(). autosavePeriodical = new PeriodicalExecuter(autosave, <?php echo apply_filters('autosave_interval', '120'); ?>); //Disable autosave after the form has been submitted if(form.addEventListener) { @@ -85,6 +86,7 @@ function autosave_disable_buttons() { form.submit ? form.submit.disabled = 'disabled' : null; form.publish ? form.publish.disabled = 'disabled' : null; form.deletepost ? form.deletepost.disabled = 'disabled' : null; + setTimeout('autosave_enable_buttons();', 1000); // Re-enable 1 sec later. Just gives autosave a head start to avoid collisions. } function autosave_enable_buttons() { diff --git a/wp-includes/script-loader.php b/wp-includes/script-loader.php index bcc8bc5..63af673 100644 --- a/wp-includes/script-loader.php +++ b/wp-includes/script-loader.php @@ -19,7 +19,7 @@ class WP_Scripts { $mce_config = apply_filters('tiny_mce_config_url', '/wp-includes/js/tinymce/tiny_mce_config.php'); $this->add( 'wp_tiny_mce', $mce_config, array('tiny_mce'), '20061113' ); $this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0'); - $this->add( 'autosave', '/wp-includes/js/autosave-js.php', array('prototype', 'sack'), '4508'); + $this->add( 'autosave', '/wp-includes/js/autosave-js.php', array('prototype', 'sack'), '20070116'); $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax-js.php', array('prototype'), '4459'); $this->add( 'listman', '/wp-includes/js/list-manipulation-js.php', array('wp-ajax', 'fat'), '4583'); $this->add( 'scriptaculous-root', '/wp-includes/js/scriptaculous/wp-scriptaculous.js', array('prototype'), '1.6.1'); |
