Changeset 27454
- Timestamp:
- 03/07/2014 04:41:49 PM (11 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/css/media-views.css
r27448 r27454 1389 1389 .attachment-info .edit-attachment, 1390 1390 .attachment-info .refresh-attachment, 1391 .attachment-info .delete-attachment { 1391 .attachment-info .delete-attachment, 1392 .attachment-info .trash-attachment { 1392 1393 display: block; 1393 1394 text-decoration: none; … … 1405 1406 } 1406 1407 1407 .attachment-info .delete-attachment { 1408 .attachment-info .delete-attachment, 1409 .attachment-info .trash-attachment { 1408 1410 color: #bc0b0b; 1409 1411 } 1410 1412 1411 .attachment-info .delete-attachment:hover { 1413 .attachment-info .delete-attachment:hover, 1414 .attachment-info .trash-attachment:hover { 1412 1415 color: red; 1413 1416 } -
trunk/src/wp-includes/js/media-views.js
r27453 r27454 5934 5934 'change [data-setting] textarea': 'updateSetting', 5935 5935 'click .delete-attachment': 'deleteAttachment', 5936 'click .trash-attachment': 'trashAttachment', 5936 5937 'click .edit-attachment': 'editAttachment', 5937 5938 'click .refresh-attachment': 'refreshAttachment' … … 5971 5972 } 5972 5973 }, 5973 5974 /** 5975 * @param {Object} event 5976 */ 5977 trashAttachment: function( event ) { 5978 event.preventDefault(); 5979 5980 this.model.destroy(); 5981 }, 5982 /** 5983 * @param {Object} event 5984 */ 5974 5985 editAttachment: function( event ) { 5975 5986 event.preventDefault(); -
trunk/src/wp-includes/media-template.php
r27452 r27454 218 218 219 219 <# if ( ! data.uploading && data.can.remove ) { #> 220 <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> 220 <?php if ( MEDIA_TRASH ): ?> 221 <a class="trash-attachment" href="#"><?php _e( 'Trash' ); ?></a> 222 <?php else: ?> 223 <a class="delete-attachment" href="#"><?php _e( 'Delete Permanently' ); ?></a> 224 <?php endif; ?> 221 225 <# } #> 222 226
Note: See TracChangeset
for help on using the changeset viewer.