on ajaxcomplete resize bar
This commit is contained in:
parent
6ed506cd54
commit
1868391329
|
@ -62,14 +62,19 @@ $(function() {
|
||||||
$('.sidebar-game-info').mouseenter(animate).mouseleave(inanimate);
|
$('.sidebar-game-info').mouseenter(animate).mouseleave(inanimate);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var resizeSidebar = function() {
|
||||||
|
const height = document.querySelector('.content-column').clientHeight;
|
||||||
|
$('.sidebar-content').css('height', (height + 50) + 'px');
|
||||||
|
};
|
||||||
|
|
||||||
animateActiveGameImagesIfFound();
|
animateActiveGameImagesIfFound();
|
||||||
setSideBarPlatformHeight();
|
setSideBarPlatformHeight();
|
||||||
addRandomImageToSideBarMenus();
|
addRandomImageToSideBarMenus();
|
||||||
enableScrollToTopOnInternalLinks();
|
enableScrollToTopOnInternalLinks();
|
||||||
enableLightboxOnClickImgInContent();
|
enableLightboxOnClickImgInContent();
|
||||||
disableResponsiveImagesForInlineLis();
|
disableResponsiveImagesForInlineLis();
|
||||||
|
resizeSidebar();
|
||||||
|
|
||||||
const height = document.querySelector('.content-column').clientHeight;
|
$(document).bind("ajaxComplete", resizeSidebar);
|
||||||
$('.sidebar-content').css('height', (height + 50) + 'px');
|
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue