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,4 +1,4 @@
jQuery( document ).ready( function($) {
jQuery( function( $ ) {
$( '.generatepress-control-toggles' ).each( function() {
$( this ).find( 'button' ).first().addClass( 'active' );
} );
@ -7,7 +7,7 @@ jQuery( document ).ready( function($) {
e.preventDefault();
var button = $( this ),
target = button.data( 'target' ),
other_targets = button.siblings();
otherTargets = button.siblings();
button.addClass( 'active' );
button.siblings().removeClass( 'active' );
@ -20,9 +20,10 @@ jQuery( document ).ready( function($) {
overflow: '',
} );
$.each( other_targets, function( index, value ) {
var other_target = $( this ).data( 'target' );
$( 'li[data-control-section="' + other_target + '"]' ).css( {
$.each( otherTargets, function() {
var otherTarget = $( this ).data( 'target' );
$( 'li[data-control-section="' + otherTarget + '"]' ).css( {
visibility: 'hidden',
height: '0',
width: '0',
@ -31,4 +32,4 @@ jQuery( document ).ready( function($) {
} );
} );
} );
});
} );