Skip to content

Commit

Permalink
fixstart
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien Taquet committed Oct 4, 2023
1 parent 2184afa commit 187fd35
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions static/tocopy/js/flax-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ function updateFilteredItems() {
document.querySelectorAll(".filter-checkbox:checked")
).map((checkbox) => checkbox.value);

console.log(selectedFilters);

//all the available items
const listItems = document.querySelectorAll(".catalog-entry");

// check if any filter is there
console.log(selectedFilters.length)
if (selectedFilters.length < 1) {
listItems.forEach((el) => {
el.classList.add("is-selected");
});
return
}


// for each entry
listItems.forEach((item) => {
//item is not visible unless
Expand Down

0 comments on commit 187fd35

Please sign in to comment.