Changeset 52167
- Timestamp:
- 11/15/2021 08:53:08 PM (3 years ago)
- Location:
- trunk/src/js/media/controllers
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/media/controllers/featured-image.js
r43309 r52167 88 88 */ 89 89 activate: function() { 90 this.updateSelection();91 90 this.frame.on( 'open', this.updateSelection, this ); 92 91 … … 108 107 updateSelection: function() { 109 108 var selection = this.get('selection'), 109 library = this.get('library'), 110 110 id = wp.media.view.settings.post.featuredImageId, 111 111 attachment; … … 117 117 118 118 selection.reset( attachment ? [ attachment ] : [] ); 119 120 if ( library.hasMore() ) { 121 library.more(); 122 } 119 123 } 120 124 }); -
trunk/src/js/media/controllers/replace-image.js
r43309 r52167 100 100 updateSelection: function() { 101 101 var selection = this.get('selection'), 102 library = this.get('library'), 102 103 attachment = this.image.attachment; 103 104 104 105 selection.reset( attachment ? [ attachment ] : [] ); 106 107 if ( library.hasMore() ) { 108 library.more(); 109 } 105 110 } 106 111 });
Note: See TracChangeset
for help on using the changeset viewer.