summaryrefslogtreecommitdiff
path: root/static
diff options
context:
space:
mode:
Diffstat (limited to 'static')
-rw-r--r--static/main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/static/main.js b/static/main.js
index 15ea87f..ccf7356 100644
--- a/static/main.js
+++ b/static/main.js
@@ -67,6 +67,10 @@ var connect = function(socket) {
/* TODO */
alert("Your course selection was rejected, but Runxi is too lazy to write the code.")
break
+ case "Y": /* course selection approved */
+ document.getElementById(`tick${ mar[1] }`).indeterminate = false
+ document.getElementById(`tick${ mar[1] }`).checked = true
+ break
default:
alert(`Invalid command ${ mar[0] } received from socket. Something is wrong.`)
}