Skip to content

Instantly share code, notes, and snippets.

@ben1one
Created May 20, 2015 17:26
Show Gist options
  • Save ben1one/b2d9b057ff591454c8ba to your computer and use it in GitHub Desktop.
Save ben1one/b2d9b057ff591454c8ba to your computer and use it in GitHub Desktop.
this._menu[f].label.on("click", this._bind(function(event){
//If filter is opened
if($(event.target).hasClass('ft-opened')){
//Fix multiple dropdowns at a time
$('.ft-panel').addClass("ft-hidden");$('.ft-label').removeClass("ft-opened");
}else{
$('.ft-panel').addClass("ft-hidden");$('.ft-label').removeClass("ft-opened");
this.openPanel( f );
this.bringToFront( f );
}
event.stopPropagation();
}, this) );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment