portico: Move carousel forward on clicking inside tour container.

Fixes: #9540.
This commit is contained in:
Akash Nimare 2018-05-25 18:46:10 +05:30
parent 0a1b429d04
commit 683fbf68ce
1 changed files with 8 additions and 0 deletions

View File

@ -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();
};