Changeset 32909
- Timestamp:
- 06/22/2015 09:32:04 PM (9 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/css/media-views.css
r32862 r32909 1622 1622 1623 1623 .attachment-info .edit-attachment, 1624 .attachment-info .refresh-attachment,1625 1624 .attachment-info .delete-attachment, 1626 1625 .attachment-info .trash-attachment, … … 1631 1630 } 1632 1631 1633 .attachment-info .refresh-attachment,1634 1632 .attachment-details.needs-refresh .attachment-info .edit-attachment { 1635 1633 display: none; 1636 1634 } 1637 1635 1638 .attachment-details.needs-refresh .attachment-info .refresh-attachment,1639 1636 .attachment-info .edit-attachment { 1640 1637 display: block; -
trunk/src/wp-includes/js/media-views.js
r32908 r32909 3183 3183 'click .untrash-attachment': 'untrashAttachment', 3184 3184 'click .edit-attachment': 'editAttachment', 3185 'click .refresh-attachment': 'refreshAttachment',3186 3185 'keydown': 'toggleSelectionHandler' 3187 3186 }, … … 3258 3257 this.$el.addClass('needs-refresh'); 3259 3258 } 3260 },3261 /**3262 * @param {Object} event3263 */3264 refreshAttachment: function( event ) {3265 this.$el.removeClass('needs-refresh');3266 event.preventDefault();3267 this.model.fetch();3268 3259 }, 3269 3260 /** -
trunk/src/wp-includes/js/media/views/attachment/details.js
r31960 r32909 35 35 'click .untrash-attachment': 'untrashAttachment', 36 36 'click .edit-attachment': 'editAttachment', 37 'click .refresh-attachment': 'refreshAttachment',38 37 'keydown': 'toggleSelectionHandler' 39 38 }, … … 112 111 }, 113 112 /** 114 * @param {Object} event115 */116 refreshAttachment: function( event ) {117 this.$el.removeClass('needs-refresh');118 event.preventDefault();119 this.model.fetch();120 },121 /**122 113 * When reverse tabbing(shift+tab) out of the right details panel, deliver 123 114 * the focus to the item in the list that was being edited. -
trunk/src/wp-includes/media-template.php
r32773 r32909 527 527 <# if ( data.can.save && data.sizes ) { #> 528 528 <a class="edit-attachment" href="{{ data.editLink }}&image-editor" target="_blank"><?php _e( 'Edit Image' ); ?></a> 529 <a class="refresh-attachment" href="#"><?php _e( 'Refresh' ); ?></a>530 529 <# } #> 531 530 <# } #>
Note: See TracChangeset
for help on using the changeset viewer.