Changeset 32862
- Timestamp:
- 06/19/2015 06:55:52 PM (10 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/media.css
r32508 r32862 462 462 border-left: 4px solid #dd3d36; 463 463 -webkit-box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); 464 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); 465 background-color: #fff; 464 box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.1); 465 background-color: #fff; 466 466 } 467 467 … … 571 571 } 572 572 573 .media-frame.mode-grid .media-toolbar-secondary > .media-button {574 margin -top: 10px;575 margin-bottom: 10px;573 .media-frame.mode-grid.mode-edit .media-toolbar-secondary > .select-mode-toggle-button { 574 margin: 0 8px 0 0; 575 vertical-align: middle; 576 576 } 577 577 … … 586 586 587 587 .media-frame.mode-grid .spinner { 588 margin-top: 1 5px;588 margin-top: 16px; 589 589 } 590 590 -
trunk/src/wp-includes/css/media-views.css
r32861 r32862 1834 1834 .mejs-container:focus { 1835 1835 outline: 1px solid #5b9dd9; 1836 -webkit-box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); 1836 1837 box-shadow: 0 0 2px 1px rgba(30, 140, 190, .8); 1837 1838 } -
trunk/src/wp-includes/js/media-grid.js
r32502 r32862 280 280 SelectModeToggle = Button.extend({ 281 281 initialize: function() { 282 _.defaults( this.options, { 283 size : '' 284 } ); 285 282 286 Button.prototype.initialize.apply( this, arguments ); 283 287 this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); … … 311 315 // TODO: the Frame should be doing all of this. 312 316 if ( this.controller.isModeActive( 'select' ) ) { 313 this.model.set( 'text', l10n.cancelSelection ); 317 this.model.set( { 318 size: 'large', 319 text: l10n.cancelSelection 320 } ); 314 321 children.not( '.spinner, .media-button' ).hide(); 315 322 this.$el.show(); 316 323 toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' ); 317 324 } else { 318 this.model.set( 'text', l10n.bulkSelect ); 325 this.model.set( { 326 size: '', 327 text: l10n.bulkSelect 328 } ); 319 329 this.controller.content.get().$el.removeClass( 'fixed' ); 320 330 toolbar.$el.css( 'width', '' ); -
trunk/src/wp-includes/js/media/views/button/select-mode-toggle.js
r32502 r32862 16 16 SelectModeToggle = Button.extend({ 17 17 initialize: function() { 18 _.defaults( this.options, { 19 size : '' 20 } ); 21 18 22 Button.prototype.initialize.apply( this, arguments ); 19 23 this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); … … 47 51 // TODO: the Frame should be doing all of this. 48 52 if ( this.controller.isModeActive( 'select' ) ) { 49 this.model.set( 'text', l10n.cancelSelection ); 53 this.model.set( { 54 size: 'large', 55 text: l10n.cancelSelection 56 } ); 50 57 children.not( '.spinner, .media-button' ).hide(); 51 58 this.$el.show(); 52 59 toolbar.$( '.delete-selected-button' ).removeClass( 'hidden' ); 53 60 } else { 54 this.model.set( 'text', l10n.bulkSelect ); 61 this.model.set( { 62 size: '', 63 text: l10n.bulkSelect 64 } ); 55 65 this.controller.content.get().$el.removeClass( 'fixed' ); 56 66 toolbar.$el.css( 'width', '' );
Note: See TracChangeset
for help on using the changeset viewer.