diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 00073bd55cdb4e3e1989758ee0e0e363c7cac1e9..d2f98a723f3b65a329b4713b6993f9892006162f 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -21,7 +21,6 @@ $('.news-carousel .page').each(function() { - console.log($(this).outerHeight()); carouselPageHeight = Math.max($(this).outerHeight(), carouselPageHeight); }); $('.news-carousel .pages').css('height', carouselPageHeight); @@ -33,13 +32,12 @@ setCarouselPage(null, carouselIndex); } - function setCarouselPage(e, index) { - console.log('set'); + function setCarouselPage(event, index) { var $pageToShow; var transitionSpeed; $('.news-carousel .page-dots').find('.current').removeClass('current'); - if(e) { + if(event) { clearInterval(carouselTimer); carouselTimer = setInterval(nextCarouselPage, carouselDelay); carouselIndex = $(this).closest('li').index();