2017-09-29 01:31:55 +02:00
|
|
|
$(function () {
|
2018-10-04 20:07:00 +02:00
|
|
|
$('.portico-header li.logout').on('click', function () {
|
2017-09-29 01:31:55 +02:00
|
|
|
$('#logout_form').submit();
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$("body").click(function (e) {
|
2019-11-02 00:06:25 +01:00
|
|
|
const $this = $(e.target);
|
2017-09-29 01:31:55 +02:00
|
|
|
|
2017-10-26 20:04:27 +02:00
|
|
|
if ($this.closest(".dropdown .dropdown-pill").length > 0 && !$(".dropdown").hasClass("show")) {
|
2017-09-29 01:31:55 +02:00
|
|
|
$(".dropdown").addClass("show");
|
|
|
|
} else if (!$this.is(".dropdown ul") && $this.closest(".dropdown ul").length === 0) {
|
|
|
|
$(".dropdown").removeClass("show");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|