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);
|
||||
},
|
||||
closeMenu: function(e) {
|
||||
if (e && !$(e.target).hasClass('hamburger')) {
|
||||
this.$('.global-menu .menu-list').hide();
|
||||
if (e && this.$(e.target).parent('.global-menu').length > 0 ) {
|
||||
return;
|
||||
}
|
||||
|
||||
this.$('.global-menu .menu-list').hide();
|
||||
}
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue