Skip to content
Snippets Groups Projects
Commit 815da69d authored by Carlos Andrés Rocha's avatar Carlos Andrés Rocha
Browse files

Cleanup a bit javascript of news carousel on student dashboard

parent 1afb982e
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment