updated plugin GP Premium
version 2.0.3
This commit is contained in:
@ -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($) {
|
||||
} );
|
||||
} );
|
||||
} );
|
||||
});
|
||||
} );
|
||||
|
Reference in New Issue
Block a user