summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--frontend/student.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/student.js b/frontend/student.js
index 2fd82aa..af5d6ad 100644
--- a/frontend/student.js
+++ b/frontend/student.js
@@ -158,7 +158,7 @@ document.addEventListener("DOMContentLoaded", () => {
case true:
c.indeterminate = true
document.querySelectorAll(".coursecheckbox").forEach(d => {
- if (d.checked === true && d.dataset.group === c.dataset.group) {
+ if (d.checked === true && d.dataset.group === c.dataset.group && c.id !== d.id) {
d.indeterminate = true
socket.send(`N ${ d.id.slice(4) }`)
}