Changeset 23031
- Timestamp:
- 12/04/2012 06:23:47 PM (12 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/css/media-views-rtl.css
r23006 r23031 233 233 border-right: 1px; 234 234 border-left: 0; 235 margin-left: 0; 236 margin-right: -8px; 235 237 } 236 238 -
trunk/wp-includes/css/media-views.css
r23026 r23031 1117 1117 } 1118 1118 1119 .media-selection.empty { 1119 .media-selection.empty, 1120 .media-selection.editing { 1121 display: none; 1122 } 1123 1124 .media-selection.one .edit-selection { 1120 1125 display: none; 1121 1126 } … … 1148 1153 .media-selection .selection-info a:last-child { 1149 1154 border-right: 0; 1155 margin-right: 0; 1150 1156 } 1151 1157 -
trunk/wp-includes/js/media-views.js
r23029 r23031 1568 1568 filterable: 'uploaded', 1569 1569 multiple: 'add', 1570 editable: true,1570 editable: false, 1571 1571 1572 1572 library: media.query( _.defaults({ … … 3639 3639 this.views.set( '.selection-view', this.attachments ); 3640 3640 this.collection.on( 'add remove reset', this.refresh, this ); 3641 this.controller.on( 'content:activate', this.refresh, this ); 3641 3642 }, 3642 3643 … … 3650 3651 return; 3651 3652 3653 var collection = this.collection, 3654 editing = 'edit-selection' === this.controller.content.mode(); 3655 3652 3656 // If nothing is selected, display nothing. 3653 this.$el.toggleClass( 'empty', ! this.collection.length ); 3654 this.$('.count').text( this.collection.length + ' ' + l10n.selected ); 3657 this.$el.toggleClass( 'empty', ! collection.length ); 3658 this.$el.toggleClass( 'one', 1 === collection.length ); 3659 this.$el.toggleClass( 'editing', editing ); 3660 3661 this.$('.count').text( collection.length + ' ' + l10n.selected ); 3655 3662 }, 3656 3663
Note: See TracChangeset
for help on using the changeset viewer.