From 3e32b33864c68ec308d5d1f9ebb516250abad47e Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 30 Dec 2024 12:04:29 +0000 Subject: [PATCH] . --- physics/templates/physics/exam_take.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 15b962f0..6b503fab 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -111,7 +111,8 @@ let end_time = new Date({{cid_user_exam.start_time|date:"U"}}*1000+parseInt('{{exam.time_limit}}')*1000); initializeClock("clockdiv", end_time); } - + {% elif cid_user_exam.completed %} + $(`ol.physics-answer-list input`).each((n, el) => { el.disabled = true; }); {% elif exam.publish_result %} $(`ol.physics-answer-list input`).each((n, el) => { el.disabled = true; }); {{question.get_answers_js}}.forEach((el, n) => {