From a925657c45ec3e854012261b3a5d49c373675254 Mon Sep 17 00:00:00 2001 From: lilia Date: Sun, 20 Mar 2016 23:34:56 -0700 Subject: [PATCH] Fix global menu close handler Previously, clicking on a conversation menu would not close the global menu. // FREEBIE --- js/views/inbox_view.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/js/views/inbox_view.js b/js/views/inbox_view.js index b241fa166825..9008ab5e0126 100644 --- a/js/views/inbox_view.js +++ b/js/views/inbox_view.js @@ -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(); } });