diff --git a/src/wp-includes/css/media-views.css b/src/wp-includes/css/media-views.css
index 87ccdc6..388a2bf 100644
a
|
b
|
video#inline-media-node { |
2643 | 2643 | font-weight: 300; |
2644 | 2644 | } |
2645 | 2645 | |
| 2646 | .media-frame.mode-bulk-edit .attachment:hover .inline-toolbar { |
| 2647 | display: none; |
| 2648 | } |
2646 | 2649 | |
2647 | 2650 | .edit-attachment-frame .edit-media-header .left:before { |
2648 | 2651 | content: '\f340'; |
diff --git a/src/wp-includes/js/media-views.js b/src/wp-includes/js/media-views.js
index 328f59a..00b06a2 100644
a
|
b
|
|
1812 | 1812 | this.activeModes.on( 'add remove reset', _.bind( this.triggerModeEvents, this ) ); |
1813 | 1813 | |
1814 | 1814 | _.each( this.options.mode, function( mode ) { |
1815 | | this.activeModes.add( new Backbone.Model( { id: mode } ) ); |
| 1815 | this.activateMode( mode ); |
1816 | 1816 | }, this ); |
1817 | 1817 | |
1818 | 1818 | // Force the uploader off if the upload limit has been exceeded or |
… |
… |
|
2005 | 2005 | this.trigger( eventToTrigger ); |
2006 | 2006 | }, |
2007 | 2007 | activateMode: function( mode ) { |
| 2008 | if ( this.activeModes.where( { id: mode } ).length ) { |
| 2009 | return; |
| 2010 | } |
2008 | 2011 | this.activeModes.add( [ { id: mode } ] ); |
| 2012 | this.$el.addClass( 'mode-' + mode ); |
2009 | 2013 | this.trigger( mode + ':activate' ); |
2010 | 2014 | }, |
2011 | 2015 | deactivateMode: function( mode ) { |
… |
… |
|
2014 | 2018 | return; |
2015 | 2019 | } |
2016 | 2020 | this.activeModes.remove( this.activeModes.where( { id: mode } ) ); |
| 2021 | this.$el.removeClass( 'mode-' + mode ); |
2017 | 2022 | this.trigger( mode + ':deactivate' ); |
2018 | 2023 | } |
2019 | 2024 | }); |
… |
… |
|
4590 | 4595 | }, |
4591 | 4596 | |
4592 | 4597 | events: { |
4593 | | 'click .attachment-preview': 'toggleSelectionHandler', |
| 4598 | 'click .js--select-attachment': 'toggleSelectionHandler', |
4594 | 4599 | 'change [data-setting]': 'updateSetting', |
4595 | 4600 | 'change [data-setting] input': 'updateSetting', |
4596 | 4601 | 'change [data-setting] select': 'updateSetting', |
diff --git a/src/wp-includes/media-template.php b/src/wp-includes/media-template.php
index 1912875..05e7def 100644
a
|
b
|
function wp_print_media_templates() { |
386 | 386 | |
387 | 387 | <script type="text/html" id="tmpl-attachment"> |
388 | 388 | <# if ( _.contains( data.controller.options.mode, 'grid' ) ) { #> |
389 | | <div class="inline-toolbar"> |
| 389 | <div class="inline-toolbar js--select-attachment"> |
390 | 390 | <div class="dashicons dashicons-edit edit edit-media"></div> |
391 | 391 | </div> |
392 | 392 | <# } #> |
393 | | <div class="attachment-preview type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}"> |
| 393 | <div class="attachment-preview js--select-attachment type-{{ data.type }} subtype-{{ data.subtype }} {{ data.orientation }}"> |
394 | 394 | <# if ( data.uploading ) { #> |
395 | 395 | <div class="media-progress-bar"><div></div></div> |
396 | 396 | <# } else if ( 'image' === data.type ) { #> |