From 683fbf68ce2d58566cff753dae44cb670cd486a6 Mon Sep 17 00:00:00 2001 From: Akash Nimare Date: Fri, 25 May 2018 18:46:10 +0530 Subject: [PATCH] portico: Move carousel forward on clicking inside tour container. Fixes: #9540. --- static/js/portico/landing-page.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/static/js/portico/landing-page.js b/static/js/portico/landing-page.js index e1059dd467..606336511d 100644 --- a/static/js/portico/landing-page.js +++ b/static/js/portico/landing-page.js @@ -241,6 +241,14 @@ var load = function () { interval: false, }); + // Move to the next slide on clicking inside the carousel container + $(".carousel-inner .item-container").click(function (e) { + // We don't want to trigger this event if user clicks on a link + if (e.target.tagName.toLowerCase() !== "a") { + $("#myCarousel").carousel("next"); + } + }); + // Set up events / categories / search events(); };