Ticket #32325: 32325.patch
| File 32325.patch, 3.0 KB (added by , 11 years ago) |
|---|
-
src/wp-admin/css/media.css
566 566 font-size: 14px; 567 567 } 568 568 569 .media-frame.mode-grid .media-toolbar-secondary > .media-button {570 margin -top: 10px;571 margin-bottom: 10px;569 .media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { 570 margin: 0 8px 0 0; 571 vertical-align: middle; 572 572 } 573 573 574 574 .media-frame.mode-grid .attachments-browser .bulk-select { … … 581 581 } 582 582 583 583 .media-frame.mode-grid .spinner { 584 margin-top: 1 5px;584 margin-top: 16px; 585 585 } 586 586 587 587 .attachments-browser .media-toolbar-secondary > .media-button { -
src/wp-includes/js/media-grid.js
279 279 280 280 SelectModeToggle = Button.extend({ 281 281 initialize: function() { 282 283 _.defaults( this.options, { 284 size: '' 285 }); 286 282 287 Button.prototype.initialize.apply( this, arguments ); 283 288 this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); 284 289 this.listenTo( this.controller, 'selection:action:done', this.back ); … … 310 315 311 316 // TODO: the Frame should be doing all of this. 312 317 if ( this.controller.isModeActive( 'select' ) ) { 318 this.model.set( 'size', 'large' ); 313 319 this.model.set( 'text', l10n.cancelSelection ); 314 320 children.not( '.media-button' ).hide(); 315 321 this.$el.show(); 316 322 toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' ); 317 323 } else { 324 this.model.set( 'size', '' ); 318 325 this.model.set( 'text', l10n.bulkSelect ); 319 326 this.controller.content.get().$el.removeClass( 'fixed' ); 320 327 toolbar.$el.css( 'width', '' ); -
src/wp-includes/js/media/views/button/select-mode-toggle.js
15 15 16 16 SelectModeToggle = Button.extend({ 17 17 initialize: function() { 18 19 _.defaults( this.options, { 20 size: '' 21 }); 22 18 23 Button.prototype.initialize.apply( this, arguments ); 19 24 this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); 20 25 this.listenTo( this.controller, 'selection:action:done', this.back ); … … 46 51 47 52 // TODO: the Frame should be doing all of this. 48 53 if ( this.controller.isModeActive( 'select' ) ) { 54 this.model.set( 'size', 'large' ); 49 55 this.model.set( 'text', l10n.cancelSelection ); 50 56 children.not( '.media-button' ).hide(); 51 57 this.$el.show(); 52 58 toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' ); 53 59 } else { 60 this.model.set( 'size', '' ); 54 61 this.model.set( 'text', l10n.bulkSelect ); 55 62 this.controller.content.get().$el.removeClass( 'fixed' ); 56 63 toolbar.$el.css( 'width', '' );