updated plugin GP Premium version 2.0.3

This commit is contained in:
2021-07-25 23:25:02 +00:00
committed by Gitium
parent d7964b08bd
commit 3ef36355e9
154 changed files with 6153 additions and 9541 deletions

View File

@ -1,34 +1,31 @@
( function( api ) {
api.controlConstructor['gp-background-images'] = api.Control.extend( {
ready: function() {
api.controlConstructor[ 'gp-background-images' ] = api.Control.extend( {
ready() {
var control = this;
control.container.on( 'change', '.generatepress-backgrounds-repeat select',
function() {
control.settings['repeat'].set( jQuery( this ).val() );
control.settings.repeat.set( jQuery( this ).val() );
}
);
control.container.on( 'change', '.generatepress-backgrounds-size select',
function() {
control.settings['size'].set( jQuery( this ).val() );
control.settings.size.set( jQuery( this ).val() );
}
);
control.container.on( 'change', '.generatepress-backgrounds-attachment select',
function() {
control.settings['attachment'].set( jQuery( this ).val() );
control.settings.attachment.set( jQuery( this ).val() );
}
);
control.container.on( 'input', '.generatepress-backgrounds-position input',
function() {
control.settings['position'].set( jQuery( this ).val() );
control.settings.position.set( jQuery( this ).val() );
}
);
}
},
} );
} )( wp.customize );
}( wp.customize ) );