Close conversation menu when clicking outside it
This commit is contained in:
parent
4945180c12
commit
55c46d1bb6
1 changed files with 8 additions and 1 deletions
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue