2017-09-29 01:31:55 +02:00
|
|
|
$(function () {
|
|
|
|
$('.portico-header a .logout').on('click', function () {
|
|
|
|
$('#logout_form').submit();
|
|
|
|
return false;
|
|
|
|
});
|
|
|
|
|
|
|
|
$("body").click(function (e) {
|
|
|
|
var $this = $(e.target);
|
|
|
|
|
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");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|