diff --git a/lms/templates/dashboard.html b/lms/templates/dashboard.html index d2f98a723f..2fec75e1fe 100644 --- a/lms/templates/dashboard.html +++ b/lms/templates/dashboard.html @@ -40,9 +40,8 @@ if(event) { clearInterval(carouselTimer); carouselTimer = setInterval(nextCarouselPage, carouselDelay); - carouselIndex = $(this).closest('li').index(); transitionSpeed = 250; - $pageToShow = $('.news-carousel .page').eq($(this).closest('li').index()); + $pageToShow = $('.news-carousel .page').eq(index); $(this).addClass('current'); } else { transitionSpeed = 750;