Skip to content

Commit f976447

Browse files
author
Tom Clark
committed
Allow users to select multiple filter values for the same filter name (in the case where the value is an array)
1 parent 297a375 commit f976447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/sidebar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ $(function() {
3535
if(existing_filter) {
3636
filters = _(filters).without(existing_filter);
3737
} else {
38-
filters = _(filters).reject(function(filter) { return filter.name === target.name; });
38+
filters = _(filters).reject(function(filter) { return filter.name === target.name && filter.value === target.value; });
3939
filters.push(target);
4040
}
4141
redraw();

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy