mirror of https://github.com/zulip/zulip.git
portico: Move carousel forward on clicking inside tour container.
Fixes: #9540.
This commit is contained in:
parent
0a1b429d04
commit
683fbf68ce
|
@ -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();
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue