diff --git src/wp-includes/js/media-views.js src/wp-includes/js/media-views.js
index 291738c..872e41b 100644
|
|
|
3911 | 3911 | */ |
3912 | 3912 | media.view.Toolbar = media.View.extend({ |
3913 | 3913 | tagName: 'div', |
3914 | | className: 'media-toolbar wp-filter', |
| 3914 | className: 'media-toolbar', |
3915 | 3915 | |
3916 | 3916 | initialize: function() { |
3917 | 3917 | var state = this.controller.state(), |
… |
… |
|
5750 | 5750 | }, |
5751 | 5751 | |
5752 | 5752 | createToolbar: function() { |
5753 | | var LibraryViewSwitcher, Filters; |
| 5753 | var LibraryViewSwitcher, Filters, toolbarOptions; |
5754 | 5754 | |
5755 | | /** |
5756 | | * @member {wp.media.view.Toolbar} |
5757 | | */ |
5758 | | this.toolbar = new media.view.Toolbar({ |
| 5755 | toolbarOptions = { |
5759 | 5756 | controller: this.controller |
5760 | | }); |
| 5757 | }; |
| 5758 | |
| 5759 | if ( this.controller.isModeActive( 'grid' ) ) { |
| 5760 | toolbarOptions.className = 'media-toolbar wp-filter'; |
| 5761 | } |
| 5762 | |
| 5763 | /** |
| 5764 | * @member {wp.media.view.Toolbar} |
| 5765 | */ |
| 5766 | this.toolbar = new media.view.Toolbar( toolbarOptions ); |
5761 | 5767 | |
5762 | 5768 | this.views.add( this.toolbar ); |
5763 | 5769 | |