Fix global menu close handler
Previously, clicking on a conversation menu would not close the global menu. // FREEBIE
This commit is contained in:
parent
b094607e0d
commit
a925657c45
1 changed files with 4 additions and 2 deletions
|
@ -157,9 +157,11 @@
|
||||||
new Whisper.DebugLogView().$el.appendTo(this.el);
|
new Whisper.DebugLogView().$el.appendTo(this.el);
|
||||||
},
|
},
|
||||||
closeMenu: function(e) {
|
closeMenu: function(e) {
|
||||||
if (e && !$(e.target).hasClass('hamburger')) {
|
if (e && this.$(e.target).parent('.global-menu').length > 0 ) {
|
||||||
this.$('.global-menu .menu-list').hide();
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.$('.global-menu .menu-list').hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue