File "control.js"
Full Path: /home/jlklyejr/public_html/post-date/wp-content/plugins/kirki/kirki-packages/control-checkbox/src/control.js
File size: 602 bytes
MIME-type: text/x-java
Charset: utf-8
import "./control.scss";
var kirkiCheckboxScript = {
initKirkiControl: function( control ) {
control = control || this;
control.container.on( 'change', 'input', function() {
control.setting.set( jQuery( this ).is( ':checked' ) );
} );
}
};
wp.customize.controlConstructor['kirki-checkbox'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );
wp.customize.controlConstructor['kirki-switch'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );
wp.customize.controlConstructor['kirki-toggle'] = wp.customize.kirkiDynamicControl.extend( kirkiCheckboxScript );