From 70bb6dc15a8c794b4c2851d1a91108b5bd7679c5 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 30 Dec 2024 12:14:51 +0000 Subject: [PATCH] . --- physics/templates/physics/exam_take.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/physics/templates/physics/exam_take.html b/physics/templates/physics/exam_take.html index 6b503fab..93e2a42c 100755 --- a/physics/templates/physics/exam_take.html +++ b/physics/templates/physics/exam_take.html @@ -111,9 +111,7 @@ 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 %} + {% elif exam.publish_results %} $(`ol.physics-answer-list input`).each((n, el) => { el.disabled = true; }); {{question.get_answers_js}}.forEach((el, n) => { console.log(el) @@ -133,6 +131,8 @@ } }); + {% elif cid_user_exam.completed %} + $(`ol.physics-answer-list input`).each((n, el) => { el.disabled = true; }); //$("ul.physics-answer-list li[data-ans='{{question.best_answer}}']").addClass("correct"); {% endif %}