From 863b03f1689b57d94e7a6afd3566b8ca9c431f21 Mon Sep 17 00:00:00 2001 From: Ross Date: Fri, 26 Feb 2021 16:15:41 +0000 Subject: [PATCH] . --- anatomy/static/js/anatomy.js | 3 ++- longs/templates/longs/view.html | 2 +- rapids/templates/rapids/view.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index 0acc0dcb..90ea91a0 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -108,10 +108,11 @@ $(document).ready(function () { }) let post_url = document.getElementById("button-select-add-exam").dataset.exam_json_edit_url; let type = document.getElementById("button-select-add-exam").dataset.type; + let csrf = document.getElementById("button-select-add-exam").dataset.csrf; $.ajax({ url: post_url, data: { - csrfmiddlewaretoken: "{{ csrf_token }}", + csrfmiddlewaretoken: csrf, add_exam_questions: JSON.stringify(ids), type: type, exam_id: $(evt.target).data("exam-id"), diff --git a/longs/templates/longs/view.html b/longs/templates/longs/view.html index ee9a3bc4..626a9222 100755 --- a/longs/templates/longs/view.html +++ b/longs/templates/longs/view.html @@ -17,7 +17,7 @@ {% render_table table %} -
{% endblock %} \ No newline at end of file diff --git a/rapids/templates/rapids/view.html b/rapids/templates/rapids/view.html index 0e59204a..284bb49d 100755 --- a/rapids/templates/rapids/view.html +++ b/rapids/templates/rapids/view.html @@ -15,7 +15,7 @@ {% render_table table %} -