Changeset 29565
- Timestamp:
- 08/21/2014 03:53:13 AM (11 years ago)
- Location:
- trunk/src/wp-includes/js
- Files:
-
- 2 edited
-
media-grid.js (modified) (1 diff)
-
media-views.js (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/media-grid.js
r29560 r29565 136 136 toolbar: 'select', 137 137 contentUserSetting: false, 138 filterable: 'all' 138 filterable: 'all', 139 autoSelect: false 139 140 }) 140 141 ]); -
trunk/src/wp-includes/js/media-views.js
r29562 r29565 596 596 sortable: true, 597 597 598 autoSelect: true, 598 599 describe: false, 599 600 // Uses a user setting to override the content mode. … … 752 753 this.frame.content.mode('browse'); 753 754 } 754 this.get('selection').add( attachment ); 755 756 this.frame.trigger( 'library:selection:add' ); 755 756 if ( this.get( 'autoSelect' ) ) { 757 this.get('selection').add( attachment ); 758 this.frame.trigger( 'library:selection:add' ); 759 } 757 760 }, 758 761 … … 5706 5709 5707 5710 if ( media.view.settings.mediaTrash && 5708 this.controller. activeModes.where( { id: 'grid' } ).length) {5711 this.controller.isModeActive( 'grid' ) ) { 5709 5712 5710 5713 filters.trash = { … … 5822 5825 // browser view. Is this a use case for doAction( 'add:toolbar-items:attachments-browser', this.toolbar ); 5823 5826 // which the controller can tap into and add this view? 5824 if ( this.controller. activeModes.where( { id: 'grid' } ).length) {5827 if ( this.controller.isModeActive( 'grid' ) ) { 5825 5828 LibraryViewSwitcher = media.View.extend({ 5826 5829 className: 'view-switch media-grid-view-switch',
Note: See TracChangeset
for help on using the changeset viewer.