Close conversation menu when clicking outside it

This commit is contained in:
lilia 2015-02-19 11:48:56 -08:00
parent 4945180c12
commit 55c46d1bb6

View file

@ -52,7 +52,14 @@
'click .end-session': 'endSession',
'click .leave-group': 'leaveGroup',
'click .new-group-update': 'newGroupUpdate',
'click .hamburger': 'toggleMenu'
'click .hamburger': 'toggleMenu',
'click' : 'closeMenu'
},
closeMenu: function(e) {
if (e && !$(e.target).hasClass('hamburger')) {
this.$el.find('.menu-list').hide();
}
},
endSession: function() {