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