CoreFiles by mySites.guru
customize-controls.js30 lines, 705 bytes, from wordpress-5.0-beta2.zip
Raw History Compare with 5.0-beta1
md5
b2ef26608e94f39b4a0364089e4d3ac5
sha1
c936ab7c3eb4775b1f9191e5e0476ce8dfaae47a
sha256
62ed0ad4a89880e8d3a7e4b36dcc735a9fd212245f2d1aeaa53521e9e0dcdca6
/**
 * File customizer.js.
 *
 * Theme Customizer enhancements for a better user experience.
 *
 * Contains handlers to make Theme Customizer preview reload changes asynchronously.
 */

(function() {

	wp.customize.bind( 'ready', function() {

		// Only show the color hue control when there's a custom color scheme.
		wp.customize( 'colorscheme', function( setting ) {
			wp.customize.control( 'colorscheme_hue', function( control ) {
				var visibility = function() {
					if ( 'custom' === setting.get() ) {
						control.container.slideDown( 180 );
					} else {
						control.container.slideUp( 180 );
					}
				};

				visibility();
				setting.bind( visibility );
			});
		});
	});

})( jQuery );

No other release has this exact content. See every version of this file.