Changeset 60785
- Timestamp:
- 09/19/2025 07:55:26 PM (20 hours ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/wp/customize/controls.js
r60715 r60785 4727 4727 */ 4728 4728 setImageFromAttachment: function( attachment ) { 4729 var control = this; 4729 4730 this.params.attachment = attachment; 4730 4731 4731 4732 // Set the Customizer setting; the callback takes care of rendering. 4732 4733 this.setting( attachment.id ); 4734 4735 // Set focus to the first relevant button after the icon. 4736 _.defer( function() { 4737 var firstButton = control.container.find( '.actions .button' ).first(); 4738 if ( firstButton.length ) { 4739 firstButton.focus(); 4740 } 4741 } ); 4733 4742 } 4734 4743 }); … … 4813 4822 */ 4814 4823 setImageFromAttachment: function( attachment ) { 4815 var sizes = [ 'site_icon-32', 'thumbnail', 'full' ], link, 4824 var control = this, 4825 sizes = [ 'site_icon-32', 'thumbnail', 'full' ], link, 4816 4826 icon; 4817 4827 … … 4834 4844 link = $( 'link[rel="icon"][sizes="32x32"]' ); 4835 4845 link.attr( 'href', icon.url ); 4846 4847 // Set focus to the first relevant button after the icon. 4848 _.defer( function() { 4849 var firstButton = control.container.find( '.actions .button' ).first(); 4850 if ( firstButton.length ) { 4851 firstButton.focus(); 4852 } 4853 } ); 4836 4854 }, 4837 4855
Note: See TracChangeset
for help on using the changeset viewer.