Ticket #33049: 33049.2.diff
File 33049.2.diff, 2.8 KB (added by , 16 months ago) |
---|
-
src/js/media/views/attachments/browser.js
423 423 424 424 if ( ! this.collection.length ) { 425 425 this.toolbar.get( 'spinner' ).show(); 426 this.toolbar.$( '.media-bg-overlay' ).show(); 426 427 this.dfd = this.collection.more().done( function() { 427 428 if ( ! view.collection.length ) { 428 429 noItemsView.$el.removeClass( 'hidden' ); … … 430 431 noItemsView.$el.addClass( 'hidden' ); 431 432 } 432 433 view.toolbar.get( 'spinner' ).hide(); 434 view.toolbar.$( '.media-bg-overlay' ).hide(); 433 435 } ); 434 436 } else { 435 437 noItemsView.$el.addClass( 'hidden' ); 436 438 view.toolbar.get( 'spinner' ).hide(); 439 this.toolbar.$( '.media-bg-overlay' ).hide(); 437 440 } 438 441 }, 439 442 -
src/js/media/views/toolbar.js
28 28 // The toolbar is composed of two `PriorityList` views. 29 29 this.primary = new wp.media.view.PriorityList(); 30 30 this.secondary = new wp.media.view.PriorityList(); 31 this.tertiary = new wp.media.view.PriorityList(); 31 32 this.primary.$el.addClass('media-toolbar-primary search-form'); 32 33 this.secondary.$el.addClass('media-toolbar-secondary'); 34 this.tertiary.$el.addClass('media-bg-overlay'); 33 35 34 this.views.set([ this.secondary, this.primary ]);36 this.views.set([ this.secondary, this.primary, this.tertiary ]); 35 37 36 38 if ( this.options.items ) { 37 39 this.set( this.options.items, { silent: true }); … … 122 124 delete this._views[ id ]; 123 125 this.primary.unset( id, options ); 124 126 this.secondary.unset( id, options ); 127 this.tertiary.unset( id, options ); 125 128 126 129 if ( ! options || ! options.silent ) { 127 130 this.refresh(); -
src/wp-includes/css/media-views.css
2809 2809 font-size: 14px; 2810 2810 line-height: 2.71428571; 2811 2811 } 2812 2813 .media-frame .wp-filter .media-toolbar-secondary { 2814 position: unset; 2815 } 2816 2817 .media-frame .media-toolbar-secondary .spinner { 2818 position: absolute; 2819 top: 0; 2820 bottom: 0; 2821 margin: auto; 2822 left: 0; 2823 right: 0; 2824 z-index: 9; 2825 } 2826 2827 .media-bg-overlay { 2828 content: ''; 2829 background: #ffffff; 2830 width: 100%; 2831 height: 100%; 2832 display: hidden; 2833 position: absolute; 2834 left: 0; 2835 right: 0; 2836 top: 0; 2837 bottom: 0; 2838 opacity: 0.6; 2839 } 2812 2840 } 2813 2841 2814 2842 /* Responsive on portrait and landscape */