mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-09 18:08:09 +01:00
Don't autosave if no changes. Props masquerade. fixes #3042
git-svn-id: http://svn.automattic.com/wordpress/trunk@4102 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0bc3bd75b9
commit
1a9df1c2d5
@ -14,6 +14,10 @@ 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') ?>);
|
||||
}
|
||||
addLoadEvent(autosave_start_timer)
|
||||
|
@ -18,7 +18,7 @@ class WP_Scripts {
|
||||
$this->add( 'tiny_mce', '/wp-includes/js/tinymce/tiny_mce_gzip.php', false, '08152006' );
|
||||
$this->add( 'wp_tiny_mce', '/wp-includes/js/tinymce/tiny_mce_config.php', array('tiny_mce'), '04162006' );
|
||||
$this->add( 'prototype', '/wp-includes/js/prototype.js', false, '1.5.0');
|
||||
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4101');
|
||||
$this->add( 'autosave', '/wp-includes/js/autosave.js.php', array('prototype', 'sack'), '4102');
|
||||
if ( is_admin() ) {
|
||||
$this->add( 'dbx-admin-key', '/wp-admin/dbx-admin-key-js.php', array('dbx'), '3651' );
|
||||
$this->add( 'listman', '/wp-admin/list-manipulation-js.php', array('sack', 'fat'), '4042' ); // Make changeset # the correct one
|
||||
|
Loading…
Reference in New Issue
Block a user