portico: Fix clicking of carousel-container to move to next slide.

This commit is contained in:
Shubham Dhama 2018-06-04 14:09:08 +05:30 committed by Tim Abbott
parent e59fcddb13
commit 06d00b0dfe
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ var load = function () {
$(".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");
$(this).closest('.carousel').carousel('next');
}
});