This commit is contained in:
Ross
2021-02-26 16:09:59 +00:00
parent 69e4cfa354
commit 8b1c3cfcb6
+3 -3
View File
@@ -102,12 +102,12 @@ $(document).ready(function () {
function addToExam(evt) { function addToExam(evt) {
ids = [] let ids = []
$("table input:checked").each((n, el) => { $("table input:checked").each((n, el) => {
ids.push(el.value) ids.push(el.value)
}) })
post_url = document.getElementById("button-select-add-exam").dataset.exam_json_edit_url; let post_url = document.getElementById("button-select-add-exam").dataset.exam_json_edit_url;
type = document.getElementById("button-select-add-exam").dataset.type; let type = document.getElementById("button-select-add-exam").dataset.type;
$.ajax({ $.ajax({
url: post_url, url: post_url,
data: { data: {