Ticket #22713: 22713.2.diff
File 22713.2.diff, 2.3 KB (added by , 12 years ago) |
---|
-
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 { -
wp-includes/css/media-views.css
1133 1133 vertical-align: top; 1134 1134 } 1135 1135 1136 .media-selection.empty { 1136 .media-selection.empty, 1137 .media-selection.editing { 1137 1138 display: none; 1138 1139 } 1139 1140 1141 .media-selection.one .edit-selection { 1142 display: none; 1143 } 1144 1140 1145 .media-selection .count { 1141 1146 display: block; 1142 1147 padding-top: 12px; … … 1164 1169 1165 1170 .media-selection .selection-info a:last-child { 1166 1171 border-right: 0; 1172 margin-right: 0; 1167 1173 } 1168 1174 1169 1175 .media-selection .selection-info .clear-selection { -
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 ) {