Allow clicking on typeahead results

This commit is contained in:
Raphael Michel
2017-09-25 22:03:25 +02:00
parent 8265c302ad
commit 1a8e67f4de
2 changed files with 11 additions and 1 deletions

View File

@@ -37,7 +37,14 @@ $(function () {
$("<span>").addClass("fa fa-calendar fa-fw")
).append(" ").append(res.date_range)
)
)
).on("mousedown", function (event) {
if ($(this).length) {
location.href = $(this).attr("href");
}
$(this).parent().addClass("active");
event.preventDefault();
event.stopPropagation();
})
)
);
});

View File

@@ -161,6 +161,9 @@
.event-dropdown .event-name-full, .mobile-event-dropdown .event-name-full {
white-space: normal;
}
a {
cursor: pointer;
}
}
@media (max-width: $screen-sm-max) {