Ticket #22713: 22713.3.diff
File 22713.3.diff, 2.3 KB (added by , 12 years ago) |
---|
-
wp-includes/js/media-views.js
1562 1562 toolbar: 'main-gallery', 1563 1563 filterable: 'uploaded', 1564 1564 multiple: 'add', 1565 editable: true,1565 editable: false, 1566 1566 1567 1567 library: media.query( _.defaults({ 1568 1568 type: 'image' … … 3609 3609 3610 3610 this.views.set( '.selection-view', this.attachments ); 3611 3611 this.collection.on( 'add remove reset', this.refresh, this ); 3612 this.controller.on( 'content:activate', this.refresh, this ); 3612 3613 }, 3613 3614 3614 3615 ready: function() { … … 3620 3621 if ( ! this.$el.children().length ) 3621 3622 return; 3622 3623 3624 var collection = this.collection, 3625 editing = 'edit-selection' === this.controller.content.mode(); 3626 3623 3627 // If nothing is selected, display nothing. 3624 this.$el.toggleClass( 'empty', ! this.collection.length ); 3625 this.$('.count').text( this.collection.length + ' ' + l10n.selected ); 3628 this.$el.toggleClass( 'empty', ! collection.length ); 3629 this.$el.toggleClass( 'one', 1 === collection.length ); 3630 this.$el.toggleClass( 'editing', editing ); 3631 3632 this.$('.count').text( collection.length + ' ' + l10n.selected ); 3626 3633 }, 3627 3634 3628 3635 edit: function( event ) { -
wp-includes/css/media-views.css
1116 1116 vertical-align: top; 1117 1117 } 1118 1118 1119 .media-selection.empty { 1119 .media-selection.empty, 1120 .media-selection.editing { 1120 1121 display: none; 1121 1122 } 1122 1123 1124 .media-selection.one .edit-selection { 1125 display: none; 1126 } 1127 1123 1128 .media-selection .count { 1124 1129 display: block; 1125 1130 padding-top: 12px; … … 1147 1152 1148 1153 .media-selection .selection-info a:last-child { 1149 1154 border-right: 0; 1155 margin-right: 0; 1150 1156 } 1151 1157 1152 1158 .media-selection .selection-info .clear-selection { -
wp-includes/css/media-views-rtl.css
232 232 .media-selection .selection-info a:last-child { 233 233 border-right: 1px; 234 234 border-left: 0; 235 margin-left: 0; 236 margin-right: -8px; 235 237 } 236 238 237 239 .media-selection:after {