Skip to content

Commit

Permalink
[minor] Made filter menu open when clicking the actual button, and not
Browse files Browse the repository at this point in the history
just the carret.
  • Loading branch information
emilisto committed May 17, 2012
1 parent 0c6a85f commit 9f0235f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions public/js/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -241,11 +241,12 @@ this.ClassFilterView = Backbone.View.extend({
this.render();
},

clickMain: function() {
clickMain: function(ev) {
if(this._currentFilter) {
this.clearFilter();
} else {
$('.btn.btn-toggle', this.el).click();
$('.btn-group', this.el).toggleClass('open');
ev.stopPropagation();
}
},

Expand Down

0 comments on commit 9f0235f

Please sign in to comment.