Changeset 27003
- Timestamp:
- 01/22/2014 05:57:13 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/post.js
r26995 r27003 402 402 403 403 // The form is being submitted by the user 404 $submitButtons = $submitpost.find( ':button, :submit, a.submitdelete, #post-preview' ).on( 'click. autosave', function( event ) {404 $submitButtons = $submitpost.find( ':button, :submit, a.submitdelete, #post-preview' ).on( 'click.edit-post', function( event ) { 405 405 var $button = $(this); 406 406 … … 410 410 } 411 411 412 if ( $button.hasClass('submitdelete') ) {412 if ( $button.hasClass('submitdelete') || $button.is( '#post-preview' ) ) { 413 413 return; 414 414 } … … 421 421 } 422 422 423 wp.autosave.server.disable(); 423 if ( typeof wp != 'undefined' && wp.autosave ) { 424 wp.autosave.server.disable(); 425 } 426 424 427 releaseLock = false; 425 428 $(window).off( 'beforeunload.edit-post' );
Note: See TracChangeset
for help on using the changeset viewer.