Changeset 57605
- Timestamp:
- 02/12/2024 11:00:04 PM (10 months ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/views/attachments/browser.js
r52806 r57605 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 ) { … … 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 }, -
trunk/src/js/media/views/toolbar.js
r47122 r57605 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 ) { … … 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 ) { -
trunk/src/wp-includes/css/media-views.css
r57602 r57605 2815 2815 line-height: 2.71428571; 2816 2816 } 2817 2818 .media-frame .wp-filter .media-toolbar-secondary { 2819 position: unset; 2820 } 2821 2822 .media-frame .media-toolbar-secondary .spinner { 2823 position: absolute; 2824 top: 0; 2825 bottom: 0; 2826 margin: auto; 2827 left: 0; 2828 right: 0; 2829 z-index: 9; 2830 } 2831 2832 .media-bg-overlay { 2833 content: ''; 2834 background: #ffffff; 2835 width: 100%; 2836 height: 100%; 2837 display: hidden; 2838 position: absolute; 2839 left: 0; 2840 right: 0; 2841 top: 0; 2842 bottom: 0; 2843 opacity: 0.6; 2844 } 2817 2845 } 2818 2846
Note: See TracChangeset
for help on using the changeset viewer.