summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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');
}