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

@ -516,7 +516,7 @@ function generateStickyDebounce(func, wait, immediate) {
};
};
jQuery( document ).ready( function($) {
jQuery( function( $ ) {
var resizeEvent = 'onorientationchange' in window ? 'orientationchange' : 'resize',
body = $( 'body' ),
transition = 'none';
@ -606,7 +606,7 @@ jQuery( document ).ready( function($) {
}
}, 250);
if ( sidebarNavClone.length ) {
if ( $( 'body' ).hasClass( 'sticky-enabled' ) && sidebarNavClone.length ) {
window.addEventListener( 'resize', checkSidebarNav );
window.addEventListener( 'orientationchange', checkSidebarNav );
}

File diff suppressed because one or more lines are too long