Filtrify-unique selection for filter instead of multiple
-
Hello everybody,
I am using this great multiple filter script called Filtrify: https://luis-almeida.github.io/filtrify/
Currently you can select multiple values on each filter. For ex: You can select two genres, two dates, etc. What I need is to do is keep the 3 filters : genres ,dates ,etc but change it so that you can only select one of each. One genre, one date. So if you select another one it will replace the current one.
I beleive its here that it happens: (first code is for adding a tag, and the one underneath is the code that removes a tag when you click on it.)
this._menu[f].tags.on( "click", "li", this._bind(function(){ this.select( f ); this.filter(); }, this) ); this._menu[f].selected.on( "click", "li", this._bind(function(event){ this.unselect( f, $( event.target ).text() ); this.filter(); }, this) );
Has anyone played around with this script? I cannot seem to find another one that does what I want. THis is why I am trying to modify this one.
Thanks in advance for your help!
- The topic ‘Filtrify-unique selection for filter instead of multiple’ is closed to new replies.