Changeset 7788
- Timestamp:
- 04/23/2008 01:55:58 AM (18 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
-
js/autosave.js (modified) (4 diffs)
-
script-loader.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/js/autosave.js
r7708 r7788 12 12 13 13 // called when autosaving pre-existing post 14 function autosave_saved(response ) {14 function autosave_saved(response, keepDisabled) { 15 15 var res = wpAjax.parseAjaxResponse(response, 'autosave'); // parse the ajax response 16 16 var message = ''; … … 42 42 if ( message ) { jQuery('#autosave').html(message); } // update autosave message 43 43 else if ( autosaveOldMessage && res ) { jQuery('#autosave').html( autosaveOldMessage ); } 44 autosave_enable_buttons(); // re-enable disabled form buttons 44 if ( !keepDisabled ) { 45 autosave_enable_buttons(); // re-enable disabled form buttons 46 } 45 47 return res; 46 48 } … … 48 50 // called when autosaving new post 49 51 function autosave_saved_new(response) { 50 var res = autosave_saved(response ); // parse the ajax response do the above52 var res = autosave_saved(response, true); // parse the ajax response do the above 51 53 // if no errors: update post_ID from the temporary value, grab new save-nonce for that new ID 52 54 if ( res && res.responses.length && !res.errors ) { … … 59 61 }); 60 62 } 63 autosave_enable_buttons(); // re-enable disabled form buttons 61 64 } 62 65 -
trunk/wp-includes/script-loader.php
r7777 r7788 48 48 ) ); 49 49 50 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '200804 16' );50 $this->add( 'autosave', '/wp-includes/js/autosave.js', array('schedule', 'wp-ajax-response'), '20080422' ); 51 51 52 52 $this->add( 'wp-ajax', '/wp-includes/js/wp-ajax.js', array('prototype'), '20070306');
Note: See TracChangeset
for help on using the changeset viewer.