From 3c5f142801d6060234a9130b40e960115240bce9 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 19 Aug 2021 13:14:11 +0100 Subject: [PATCH] . --- rapids/templates/rapids/exam_scores_user.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rapids/templates/rapids/exam_scores_user.html b/rapids/templates/rapids/exam_scores_user.html index 0419ac7f..240ee784 100644 --- a/rapids/templates/rapids/exam_scores_user.html +++ b/rapids/templates/rapids/exam_scores_user.html @@ -32,6 +32,7 @@ $(".view-question-link").on("click", function (e) { console.log("click", e) question_number = e.currentTarget.dataset.qn; + $("single-dicom-viewer").empty(); $.ajax({ url: `{% url 'rapids:question_review' pk=exam.pk %}`, data: { @@ -50,7 +51,6 @@ }); window.dispatchEvent(event); - $("single-dicom-viewer").empty(); $(".question-display-block .answers").empty().append(data.answers.toString()); $(".question-display-block .question-number").empty().append(question_number); // show some message according to the response. @@ -61,7 +61,7 @@ }) }) - $(".view-question-link").click(); + $(".view-question-link").first().click(); });