apache
wp-content
jetpack-waf
mu-plugins
plugins
activitypub
audioigniter
cloudron-sso
gitium
gp-premium
backgrounds
blog
colors
copyright
disable-elements
dist
elements
font-library
general
hooks
inc
legacy
assets
dashboard.css
dashboard.js
activation.php
dashboard.php
import-export.php
reset.php
class-adjacent-posts.php
class-dashboard.php
class-register-dynamic-tags.php
class-rest.php
class-singleton.php
deprecated-admin.php
deprecated.php
functions.php
langs
library
menu-plus
page-header
secondary-nav
sections
site-library
spacing
typography
woocommerce
gp-premium.php
readme.txt
webpack.config.js
wpml-config.xml
jetpack-protect
menu-icons
openid-connect-generic
rss-importer
simple-local-avatars
smtp-mailer
two-factor
wp-piwik
wp-webauthn
index.php
themes
w3tc-config
index.php
.gitignore
htaccess
php.ini
49 lines
1.2 KiB
JavaScript
49 lines
1.2 KiB
JavaScript
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;
|
|
}
|
|
} );
|
|
} );
|