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

@ -8,7 +8,8 @@
padding: 10px 15px;
cursor: pointer;
color: #222;
display: inline-block;
display: inline-block;
text-decoration: none;
}
.generatepress-dashboard-tabs a:not(:last-child) {

View File

@ -1,13 +1,13 @@
jQuery( document ).ready(function( $ ) {
$( '#generate-select-all' ).on( 'click', function( event ) {
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;
});
} );
}
} );
@ -20,6 +20,7 @@ jQuery( document ).ready(function( $ ) {
} );
$( 'input[name="generate_package_hooks_deactivate_package"]' ).on( 'click', function() {
// eslint-disable-next-line no-alert
var check = confirm( dashboard.deprecated_module );
if ( ! check ) {
@ -28,10 +29,20 @@ jQuery( document ).ready(function( $ ) {
} );
$( '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;
}
} );
} );