- Timestamp:
- 01/22/2014 09:25:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/js/post.js
r27003 r27015 405 405 var $button = $(this); 406 406 407 if ( $button. prop('disabled') ) {407 if ( $button.hasClass('button-disabled') ) { 408 408 event.preventDefault(); 409 409 return; … … 428 428 $(window).off( 'beforeunload.edit-post' ); 429 429 430 $submitButtons. prop( 'disabled', true ).addClass( 'button-disabled' );430 $submitButtons.addClass( 'button-disabled' ); 431 431 432 432 if ( $button.attr('id') === 'publish' ) { … … 501 501 502 502 $(document).on( 'autosave-disable-buttons.edit-post', function() { 503 $submitButtons. prop( 'disabled', true ).addClass( 'button-disabled' );503 $submitButtons.addClass( 'button-disabled' ); 504 504 }).on( 'autosave-enable-buttons.edit-post', function() { 505 505 if ( ! window.wp || ! window.wp.heartbeat || ! window.wp.heartbeat.hasConnectionError() ) { 506 $submitButtons. prop( 'disabled', false ).removeClass( 'button-disabled' );506 $submitButtons.removeClass( 'button-disabled' ); 507 507 } 508 508 });
Note: See TracChangeset
for help on using the changeset viewer.