Ticket #22491: 22491.4.diff
File 22491.4.diff, 1.2 KB (added by , 12 years ago) |
---|
-
wp-includes/js/autosave.js
2 2 3 3 jQuery(document).ready( function($) { 4 4 5 autosaveLast = $('#post #title').val() + $('#post #content').val();5 autosaveLast = ( $('#post #title').val() || '' ) + ( $('#post #content').val() || '' ); 6 6 autosavePeriodical = $.schedule({time: autosaveL10n.autosaveInterval * 1000, func: function() { autosave(); }, repeat: true, protect: true}); 7 7 8 8 //Disable autosave after the form has been submitted … … 35 35 return autosaveL10n.saveAlert; 36 36 } else { 37 37 if ( fullscreen && fullscreen.settings.visible ) { 38 title = $('#wp-fullscreen-title').val() ;39 content = $("#wp_mce_fullscreen").val() ;38 title = $('#wp-fullscreen-title').val() || ''; 39 content = $("#wp_mce_fullscreen").val() || ''; 40 40 } else { 41 title = $('#post #title').val() ;42 content = $('#post #content').val() ;41 title = $('#post #title').val() || ''; 42 content = $('#post #content').val() || ''; 43 43 } 44 44 45 45 if ( ( title || content ) && title + content != autosaveLast )