From 3c4c760e2992aca4370ec262f1ddc7f3fbbc39fe Mon Sep 17 00:00:00 2001 From: andryyy Date: Mon, 25 Mar 2019 12:33:58 +0100 Subject: [PATCH] [Web] Allow logout with broken session [Web] Try to set aria hidden to false when a modal opens --- data/web/inc/footer.inc.php | 4 ++++ data/web/inc/sessions.inc.php | 36 +++++++++++++++++------------------ 2 files changed, 22 insertions(+), 18 deletions(-) diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index b8229e26c..f1cca54cb 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -26,6 +26,10 @@ $(window).load(function() { $(".overlay").hide(); }); $(document).ready(function() { + $(document).on('shown.bs.modal', function(e) { + modal_id = $(e.relatedTarget).data('target'); + $(modal_id).attr("aria-hidden","false"); + }); // TFA, CSRF, Alerts in footer.inc.php // Other general functions in mailcow.js