Emergency check fix for the scroll locker

Fix to stop main.js from completely bugging out on any page that isn't challengeType: 0
This commit is contained in:
benmcmahon100
2015-07-30 20:45:51 +01:00
parent 14368f6471
commit e6694023c6

View File

@ -365,7 +365,7 @@ $(document).ready(function() {
}); });
} }
if($('.scroll-locker') != undefined){ if($('.scroll-locker').html() != undefined){
function lockTop(initOff){ function lockTop(initOff){
$(window).scroll(function() { $(window).scroll(function() {
if ($(window).width() >= 992) { if ($(window).width() >= 992) {