update
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
( function( $, api ) {
|
||||
|
||||
api.controlConstructor['toggle'] = api.Control.extend( {
|
||||
|
||||
ready: function() {
|
||||
var control = this;
|
||||
|
||||
this.container.on( 'change', 'input:checkbox', function() {
|
||||
value = this.checked ? true : false;
|
||||
control.setting.set( value );
|
||||
} );
|
||||
}
|
||||
|
||||
} );
|
||||
|
||||
} )( jQuery, wp.customize );
|
||||
Reference in New Issue
Block a user