summaryrefslogtreecommitdiffstats
path: root/public/javascripts
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2024-02-03 00:41:22 +0000
committerGo MAEDA <maeda@farend.jp>2024-02-03 00:41:22 +0000
commit057a988283a90b38ccf131d6a8814549f1864135 (patch)
tree7114feef81281538797d13e080f847615c6546d8 /public/javascripts
parent8e24d336ca85e1bc24eb09fe12e1697b2543e41e (diff)
downloadredmine-057a988283a90b38ccf131d6a8814549f1864135.tar.gz
redmine-057a988283a90b38ccf131d6a8814549f1864135.zip
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
Diffstat (limited to 'public/javascripts')
-rw-r--r--public/javascripts/responsive.js4
1 files 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');
}