summaryrefslogtreecommitdiff
path: root/tmpl/student.html
diff options
context:
space:
mode:
Diffstat (limited to 'tmpl/student.html')
-rw-r--r--tmpl/student.html3
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)
})
})
})