Initial commit
This commit is contained in:
37
wp-content/plugins/gp-premium/inc/assets/dashboard.js
Normal file
37
wp-content/plugins/gp-premium/inc/assets/dashboard.js
Normal file
@ -0,0 +1,37 @@
|
||||
jQuery( document ).ready(function( $ ) {
|
||||
$( '#generate-select-all' ).on( 'click', function( event ) {
|
||||
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() {
|
||||
var check = confirm( dashboard.deprecated_module );
|
||||
|
||||
if ( ! check ) {
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
|
||||
$( 'input[name="generate_package_page_header_deactivate_package"]' ).on( 'click', function() {
|
||||
var check = confirm( dashboard.deprecated_module );
|
||||
|
||||
if ( ! check ) {
|
||||
return false;
|
||||
}
|
||||
} );
|
||||
});
|
Reference in New Issue
Block a user