This commit is contained in:
Ross
2021-07-29 21:59:50 +01:00
parent 8aeb0dfa20
commit 163a7cd92e
+1 -1
View File
@@ -14,7 +14,7 @@ Enter your CID in the below box.
$("button").click(() => {
let cid = $("#cid-box").val();
if (Number.isInteger(cid)) {
if (Number.isInteger(parseInt(cid))) {
window.location.replace("{% url 'sbas:exam_take' pk=exam.pk sk=0 cid='0000000' %}".replace("0000000", cid));
} else {
alert("Please enter a valid Candidate ID (CID).")