Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Introduce a jshint warning.
  • Loading branch information
desrosj committed Oct 15, 2020
commit f138386bdb2c01c2e7a39e104f8f01c06c23c9e2
5 changes: 2 additions & 3 deletions src/wp-content/themes/twentytwenty/assets/js/customize.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,21 +7,20 @@
api.control( 'accent_hue_active' ).setting.bind( function( active ) {
var control = api.control( 'accent_hue' ); // Get the accent hue control.

if ( 'custom' === active ) {
if ( 'custom' === active )
// Activate the hue color picker control and focus it.
control.activate( {
completeCallback: function() {
control.focus();
}
} );
} else {
else
// If the `custom` option isn't selected, deactivate the hue color picker and set a default.
control.deactivate( {
completeCallback: function() {
control.setting.set( control.params.defaultValue );
}
} );
}
} );
} );
}( jQuery, wp.customize ) );