Refresh attachment links in the media modal are unneeded since bringing the image editor into it in [27445].

Props rommelxcastro.
Fixes #32550.

Built from https://develop.svn.wordpress.org/trunk@32909


git-svn-id: http://core.svn.wordpress.org/trunk@32880 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-06-22 21:33:26 +00:00
parent 8c7e1b8ac0
commit b30b08fd92
8 changed files with 4 additions and 20 deletions

View File

@ -1621,7 +1621,6 @@
} }
.attachment-info .edit-attachment, .attachment-info .edit-attachment,
.attachment-info .refresh-attachment,
.attachment-info .delete-attachment, .attachment-info .delete-attachment,
.attachment-info .trash-attachment, .attachment-info .trash-attachment,
.attachment-info .untrash-attachment { .attachment-info .untrash-attachment {
@ -1630,12 +1629,10 @@
white-space: nowrap; white-space: nowrap;
} }
.attachment-info .refresh-attachment,
.attachment-details.needs-refresh .attachment-info .edit-attachment { .attachment-details.needs-refresh .attachment-info .edit-attachment {
display: none; display: none;
} }
.attachment-details.needs-refresh .attachment-info .refresh-attachment,
.attachment-info .edit-attachment { .attachment-info .edit-attachment {
display: block; display: block;
} }

File diff suppressed because one or more lines are too long

View File

@ -1621,7 +1621,6 @@
} }
.attachment-info .edit-attachment, .attachment-info .edit-attachment,
.attachment-info .refresh-attachment,
.attachment-info .delete-attachment, .attachment-info .delete-attachment,
.attachment-info .trash-attachment, .attachment-info .trash-attachment,
.attachment-info .untrash-attachment { .attachment-info .untrash-attachment {
@ -1630,12 +1629,10 @@
white-space: nowrap; white-space: nowrap;
} }
.attachment-info .refresh-attachment,
.attachment-details.needs-refresh .attachment-info .edit-attachment { .attachment-details.needs-refresh .attachment-info .edit-attachment {
display: none; display: none;
} }
.attachment-details.needs-refresh .attachment-info .refresh-attachment,
.attachment-info .edit-attachment { .attachment-info .edit-attachment {
display: block; display: block;
} }

File diff suppressed because one or more lines are too long

View File

@ -3182,7 +3182,6 @@ Details = Attachment.extend({
'click .trash-attachment': 'trashAttachment', 'click .trash-attachment': 'trashAttachment',
'click .untrash-attachment': 'untrashAttachment', 'click .untrash-attachment': 'untrashAttachment',
'click .edit-attachment': 'editAttachment', 'click .edit-attachment': 'editAttachment',
'click .refresh-attachment': 'refreshAttachment',
'keydown': 'toggleSelectionHandler' 'keydown': 'toggleSelectionHandler'
}, },
@ -3258,14 +3257,6 @@ Details = Attachment.extend({
this.$el.addClass('needs-refresh'); 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 * When reverse tabbing(shift+tab) out of the right details panel, deliver
* the focus to the item in the list that was being edited. * the focus to the item in the list that was being edited.

File diff suppressed because one or more lines are too long

View File

@ -526,7 +526,6 @@ function wp_print_media_templates() {
<# if ( data.can.save && data.sizes ) { #> <# if ( data.can.save && data.sizes ) { #>
<a class="edit-attachment" href="{{ data.editLink }}&amp;image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a> <a class="edit-attachment" href="{{ data.editLink }}&amp;image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a>
<a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>
<# } #> <# } #>
<# } #> <# } #>

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.3-alpha-32908'; $wp_version = '4.3-alpha-32909';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.