.
This commit is contained in:
@@ -14,7 +14,7 @@ Enter your CID in the below box.
|
|||||||
$("button").click(() => {
|
$("button").click(() => {
|
||||||
let cid = $("#cid-box").val();
|
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));
|
window.location.replace("{% url 'sbas:exam_take' pk=exam.pk sk=0 cid='0000000' %}".replace("0000000", cid));
|
||||||
} else {
|
} else {
|
||||||
alert("Please enter a valid Candidate ID (CID).")
|
alert("Please enter a valid Candidate ID (CID).")
|
||||||
|
|||||||
Reference in New Issue
Block a user