Patch by salman mp (@salmanmp) and Mizuki ISHIKAWA (@ishikawa999).
git-svn-id: https://svn.redmine.org/redmine/trunk@22670
e93f8b46-1217-0410-a6f0-
8f06a7374b81
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();
function closeFlyout() {
$('html').removeClass('flyout-is-active');
- $('#wrapper').off('click');
+ $('#main, #header').off('click.close-flyout');
}