]> source.dussan.org Git - redmine.git/commitdiff
Merged r22670 from trunk to 5.1-stable (#39802).
authorGo MAEDA <maeda@farend.jp>
Sat, 3 Feb 2024 00:51:09 +0000 (00:51 +0000)
committerGo MAEDA <maeda@farend.jp>
Sat, 3 Feb 2024 00:51:09 +0000 (00:51 +0000)
git-svn-id: https://svn.redmine.org/redmine/branches/5.1-stable@22673 e93f8b46-1217-0410-a6f0-8f06a7374b81

public/javascripts/responsive.js

index a07737795b8eb0e89a2842613e3ae4a0cc9d3139..f97ae0bbb3430004121dbb539e5753fe15002580 100644 (file)
@@ -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');
 }