From d4d747517ca6b8ac28d0f6927c7d842295699597 Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 19 Jan 2026 12:47:34 +0000 Subject: [PATCH] Refactor exam scores user template to unify view button class for consistency --- anatomy/templates/anatomy/exam_scores_user.html | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/anatomy/templates/anatomy/exam_scores_user.html b/anatomy/templates/anatomy/exam_scores_user.html index 3fdd421e..0cf0b25a 100644 --- a/anatomy/templates/anatomy/exam_scores_user.html +++ b/anatomy/templates/anatomy/exam_scores_user.html @@ -25,7 +25,7 @@
{% if exam.publish_results %} - + {% else %} {% endif %} @@ -88,7 +88,7 @@ $(document).ready(function () { $("#hide-viewer").on('click', function(){ $('.viewer-block .viewer-body').toggle(); }); - $(".view-question-link").on("click", function (e) { + $(".view-question-button").on("click", function (e) { question_number = e.currentTarget.dataset.qn; $("#single-dicom-viewer").empty(); $.ajax({ @@ -113,8 +113,8 @@ .always(function () { console.log('[Done]'); }); }); - // auto-click first view link to populate viewer - const firstView = $(".view-question-link").first(); + // auto-click first view button to populate viewer + const firstView = $(".view-question-button").first(); if(firstView.length){ firstView.click(); } });