Added filter functionality to list III

This commit is contained in:
Simon Martens
2023-02-02 22:44:19 +01:00
parent 112bdc8f51
commit 44dfd60d5b

View File

@@ -100,10 +100,10 @@
if( term ) { if( term ) {
for (let item of found) { for (let item of found) {
$(item.element).unmark().hide(); $(item.element).unmark().hide();
$(item.category).hide();
} }
$("#list .category").hide();
if (term.length > swl && term.startsWith(sw)) { if (term.length > swl && term.startsWith(sw)) {
found = findWord( term, found); found = findWord( term, found );
} else { } else {
found = findWord( term, dictionary ); found = findWord( term, dictionary );
} }