From 2511c4ddf6542ed142d6091b3606659376b3ce5b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Andr=C3=A9s=20Rocha?= <rocha@edx.org> Date: Tue, 13 Nov 2012 18:32:59 -0500 Subject: [PATCH] Clean carousel javascript --- lms/templates/dashboard.html | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index 00073bd55cd..d2f98a723f3 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(); -- GitLab