From 163a7cd92ef6fb9f0ac308a8abbf511f049dc1e3 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 29 Jul 2021 21:59:50 +0100 Subject: [PATCH] . --- sbas/templates/sbas/exam_start.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbas/templates/sbas/exam_start.html b/sbas/templates/sbas/exam_start.html index e845e025..dfaeee3e 100755 --- a/sbas/templates/sbas/exam_start.html +++ b/sbas/templates/sbas/exam_start.html @@ -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).")