Refresh attachment links in the media modal are unneeded since bringing the image editor into it in [27445].
Props rommelxcastro. Fixes #32550. git-svn-id: https://develop.svn.wordpress.org/trunk@32909 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3b17ffb990
commit
ff871b3603
@ -1621,7 +1621,6 @@
|
||||
}
|
||||
|
||||
.attachment-info .edit-attachment,
|
||||
.attachment-info .refresh-attachment,
|
||||
.attachment-info .delete-attachment,
|
||||
.attachment-info .trash-attachment,
|
||||
.attachment-info .untrash-attachment {
|
||||
@ -1630,12 +1629,10 @@
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
.attachment-info .refresh-attachment,
|
||||
.attachment-details.needs-refresh .attachment-info .edit-attachment {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.attachment-details.needs-refresh .attachment-info .refresh-attachment,
|
||||
.attachment-info .edit-attachment {
|
||||
display: block;
|
||||
}
|
||||
|
@ -3182,7 +3182,6 @@ Details = Attachment.extend({
|
||||
'click .trash-attachment': 'trashAttachment',
|
||||
'click .untrash-attachment': 'untrashAttachment',
|
||||
'click .edit-attachment': 'editAttachment',
|
||||
'click .refresh-attachment': 'refreshAttachment',
|
||||
'keydown': 'toggleSelectionHandler'
|
||||
},
|
||||
|
||||
@ -3258,14 +3257,6 @@ Details = Attachment.extend({
|
||||
this.$el.addClass('needs-refresh');
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @param {Object} event
|
||||
*/
|
||||
refreshAttachment: function( event ) {
|
||||
this.$el.removeClass('needs-refresh');
|
||||
event.preventDefault();
|
||||
this.model.fetch();
|
||||
},
|
||||
/**
|
||||
* When reverse tabbing(shift+tab) out of the right details panel, deliver
|
||||
* the focus to the item in the list that was being edited.
|
||||
|
@ -34,7 +34,6 @@ Details = Attachment.extend({
|
||||
'click .trash-attachment': 'trashAttachment',
|
||||
'click .untrash-attachment': 'untrashAttachment',
|
||||
'click .edit-attachment': 'editAttachment',
|
||||
'click .refresh-attachment': 'refreshAttachment',
|
||||
'keydown': 'toggleSelectionHandler'
|
||||
},
|
||||
|
||||
@ -110,14 +109,6 @@ Details = Attachment.extend({
|
||||
this.$el.addClass('needs-refresh');
|
||||
}
|
||||
},
|
||||
/**
|
||||
* @param {Object} event
|
||||
*/
|
||||
refreshAttachment: function( event ) {
|
||||
this.$el.removeClass('needs-refresh');
|
||||
event.preventDefault();
|
||||
this.model.fetch();
|
||||
},
|
||||
/**
|
||||
* When reverse tabbing(shift+tab) out of the right details panel, deliver
|
||||
* the focus to the item in the list that was being edited.
|
||||
|
@ -526,7 +526,6 @@ function wp_print_media_templates() {
|
||||
|
||||
<# if ( data.can.save && data.sizes ) { #>
|
||||
<a class="edit-attachment" href="{{ data.editLink }}&image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
|
||||
<a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>
|
||||
<# } #>
|
||||
<# } #>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user