From 32c430575455d9d346a5c36944b107bc33d2ad9f Mon Sep 17 00:00:00 2001 From: Ross Date: Mon, 29 Dec 2025 12:15:18 +0000 Subject: [PATCH] Fix indentation and formatting in exam order editing functionality for improved readability --- templates/exam_overview_js.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/templates/exam_overview_js.html b/templates/exam_overview_js.html index ebaa05a3..0915f7a2 100644 --- a/templates/exam_overview_js.html +++ b/templates/exam_overview_js.html @@ -157,7 +157,7 @@ }) $("#button-edit-order").click(function (evt) { // hide the edit button while in edit mode so we can restore it after saving - $(this).addClass('d-none').prop('disabled', true); + $(this).addClass('d-none').prop('disabled', true); sortable('.sortable'); $("#full-question-list").addClass('sorting'); @@ -165,11 +165,11 @@ $("#full-question-list li").attr("title", "Drag to reorder"); $("#full-question-list").after($("").click(() =>{ - var ul = document.getElementById("full-question-list"); - for (var i = ul.children.length; i >= 0; i--) { - ul.appendChild(ul.children[Math.random() * i | 0]); - } - renumber(); + var ul = document.getElementById("full-question-list"); + for (var i = ul.children.length; i >= 0; i--) { + ul.appendChild(ul.children[Math.random() * i | 0]); + } + renumber(); }))