diff options
Diffstat (limited to '')
-rw-r--r-- | tmpl/student.html | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tmpl/student.html b/tmpl/student.html index 0503b04..4d82111 100644 --- a/tmpl/student.html +++ b/tmpl/student.html @@ -178,8 +178,7 @@ search.addEventListener("input", () => { const s = search.value.toLowerCase().trim().normalize('NFD') document.querySelectorAll(".courseitem").forEach(c => { - const m = c.textContent.toLowerCase().normalize('NFD').includes(s) - c.hidden = (!m) && (s.length > 0) + c.hidden = (!c.textContent.toLowerCase().normalize('NFD').includes(s)) && (s.length > 0) }) }) }) |