updated plugin GP Premium version 2.1.1

This commit is contained in:
2021-12-20 13:41:59 +00:00
committed by Gitium
parent 132b46b78f
commit d5dbb2bde7
86 changed files with 2903 additions and 455 deletions

View File

@ -0,0 +1,48 @@
jQuery( function( $ ) {
$( '#generate-select-all' ).on( 'click', function() {
if ( this.checked ) {
$( '.addon-checkbox:not(:disabled)' ).each( function() {
this.checked = true;
} );
} else {
$( '.addon-checkbox' ).each( function() {
this.checked = false;
} );
}
} );
$( '#generate_license_key_gp_premium' ).on( 'input', function() {
if ( '' !== $.trim( this.value ) ) {
$( '.beta-testing-container' ).show();
} else {
$( '.beta-testing-container' ).hide();
}
} );
$( 'input[name="generate_package_hooks_deactivate_package"]' ).on( 'click', function() {
// eslint-disable-next-line no-alert
var check = confirm( dashboard.deprecated_module );
if ( ! check ) {
return false;
}
} );
$( 'input[name="generate_package_page_header_deactivate_package"]' ).on( 'click', function() {
// eslint-disable-next-line no-alert
var check = confirm( dashboard.deprecated_module );
if ( ! check ) {
return false;
}
} );
$( 'input[name="generate_package_sections_deactivate_package"]' ).on( 'click', function() {
// eslint-disable-next-line no-alert
var check = confirm( dashboard.deprecated_module );
if ( ! check ) {
return false;
}
} );
} );