Changeset 22794
- Timestamp:
- 11/21/2012 09:04:04 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/autosave.js
r22019 r22794 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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.