mirror of
git://develop.git.wordpress.org/
synced 2025-03-21 04:20:01 +01:00
Editor: hide the Move to Trash link for auto-drafts until they are auto-saved.
Props iseulde. Fixes #16116. git-svn-id: https://develop.svn.wordpress.org/trunk@36972 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9d753fbf5a
commit
b68a4e3da6
@ -134,6 +134,10 @@ input#link_url {
|
||||
padding: 1px 2px;
|
||||
}
|
||||
|
||||
body.post-new-php .submitbox .submitdelete {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* @todo: do we really need this? word on the street is we don't and this
|
||||
stray rule may actually be compensated for elsewhere. */
|
||||
#normal-sortables .submitbox .submitdelete:hover {
|
||||
|
@ -374,6 +374,10 @@ jQuery(document).ready( function($) {
|
||||
$( '.autosave-message' ).text( postL10n.savingText );
|
||||
}).on( 'after-autosave.edit-post', function( event, data ) {
|
||||
$( '.autosave-message' ).text( data.message );
|
||||
|
||||
if ( $( document.body ).hasClass( 'post-new-php' ) ) {
|
||||
$( '.submitbox .submitdelete' ).show();
|
||||
}
|
||||
});
|
||||
|
||||
$(window).on( 'beforeunload.edit-post', function() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user