Fix global menu close handler

Previously, clicking on a conversation menu would not close the global
menu.

// FREEBIE
This commit is contained in:
lilia 2016-03-20 23:34:56 -07:00
parent b094607e0d
commit a925657c45

View file

@ -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();
}
});