Skip to content
This repository has been archived by the owner on Nov 8, 2018. It is now read-only.

Commit

Permalink
close popover fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tahaalibra committed Jun 6, 2016
1 parent 554f541 commit 6723be3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions js/views/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ define(function(require) {
toggleCollapse: function() {
this.collapsed = !this.collapsed;
this.render();
},
toggleMenu: function(e) {
e.preventDefault();
this.menuShown = !this.menuShown;
this.listenTo(Radio.ui, 'document:click', function(event) {
var target = $(event.target);
if (!this.$el.is(target.closest('.navigation-account'))) {
Expand All @@ -73,10 +77,6 @@ define(function(require) {
this.toggleMenuClass();
}
});
},
toggleMenu: function(e) {
e.preventDefault();
this.menuShown = !this.menuShown;
this.toggleMenuClass();
},
toggleMenuClass: function() {
Expand Down

0 comments on commit 6723be3

Please sign in to comment.