12 lines
312 B
JavaScript
12 lines
312 B
JavaScript
|
( function( $, api ) {
|
||
|
api.controlConstructor['gp-copyright'] = api.Control.extend( {
|
||
|
ready: function() {
|
||
|
var control = this;
|
||
|
$( '.gp-copyright-area', control.container ).on( 'change keyup',
|
||
|
function() {
|
||
|
control.setting.set( $( this ).val() );
|
||
|
}
|
||
|
);
|
||
|
}
|
||
|
} );
|
||
|
} )( jQuery, wp.customize );
|