From 057a988283a90b38ccf131d6a8814549f1864135 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sat, 3 Feb 2024 00:41:22 +0000 Subject: [PATCH] Merged r22670 from trunk to 5.1-stable (#35192). git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22671 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/responsive.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/javascripts/responsive.js b/public/javascripts/responsive.js index a07737795..f97ae0bbb 100644 --- a/public/javascripts/responsive.js +++ b/public/javascripts/responsive.js @@ -2,7 +2,7 @@ function openFlyout() { $('html').addClass('flyout-is-active'); - $('#main').on('click', function(e){ + $('#main, #header').on('click.close-flyout', function(e){ e.preventDefault(); e.stopPropagation(); closeFlyout(); @@ -11,7 +11,7 @@ function openFlyout() { function closeFlyout() { $('html').removeClass('flyout-is-active'); - $('#wrapper').off('click'); + $('#main, #header').off('click.close-flyout'); } -- 2.39.5