Changeset 29566
- Timestamp:
- 08/21/2014 04:19:40 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
-
media-grid.js (modified) (3 diffs)
-
media-views.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29565 r29566 137 137 contentUserSetting: false, 138 138 filterable: 'all', 139 autoSelect: false 139 autoSelect: false 140 140 }) 141 141 ]); … … 584 584 media.view.Button.prototype.initialize.apply( this, arguments ); 585 585 this.listenTo( this.controller, 'select:activate select:deactivate', this.toggleBulkEditHandler ); 586 this.listenTo( this.controller, 'selection:action:done', this.back ); 587 }, 588 589 back: function () { 590 this.controller.deactivateMode( 'select' ).activateMode( 'edit' ); 586 591 }, 587 592 … … 589 594 media.view.Button.prototype.click.apply( this, arguments ); 590 595 if ( this.controller.isModeActive( 'select' ) ) { 591 this. controller.deactivateMode( 'select' ).activateMode( 'edit');596 this.back(); 592 597 } else { 593 598 this.controller.deactivateMode( 'edit' ).activateMode( 'select' ); -
trunk/src/wp-includes/js/media-views.js
r29565 r29566 5865 5865 priority: -60, 5866 5866 click: function() { 5867 var model, changed = [], 5867 var model, changed = [], self = this, 5868 5868 selection = this.controller.state().get( 'selection' ), 5869 5869 library = this.controller.state().get( 'library' ); … … 5902 5902 $.when.apply( null, changed ).then( function() { 5903 5903 library._requery( true ); 5904 self.controller.trigger( 'selection:action:done' ); 5904 5905 } ); 5905 5906 }
Note: See TracChangeset
for help on using the changeset viewer.