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: {