From 8b1c3cfcb6eace137f200f2c4f2e9164db83659a Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 26 Feb 2021 16:09:59 +0000 Subject: [PATCH] . --- anatomy/static/js/anatomy.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index ce843a01..0acc0dcb 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -102,12 +102,12 @@ $(document).ready(function () { function addToExam(evt) { - ids = [] + let ids = [] $("table input:checked").each((n, el) => { ids.push(el.value) }) - post_url = document.getElementById("button-select-add-exam").dataset.exam_json_edit_url; - type = document.getElementById("button-select-add-exam").dataset.type; + let post_url = document.getElementById("button-select-add-exam").dataset.exam_json_edit_url; + let type = document.getElementById("button-select-add-exam").dataset.type; $.ajax({ url: post_url, data: {