.
This commit is contained in:
@@ -89,10 +89,12 @@
|
||||
})
|
||||
$("#button-open-access").click(function () {
|
||||
$.ajax({
|
||||
url: "{% url 'anatomy:exam_json_edit' pk=exam.pk %}",
|
||||
url: "{% url 'generic:generic_exam_json_edit' %}",
|
||||
data: {
|
||||
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||
set_open_access: true,
|
||||
type: "anatomy",
|
||||
exam_id: "{{exam.pk}}",
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
@@ -111,10 +113,13 @@
|
||||
})
|
||||
$("#button-closed-access").click(function () {
|
||||
$.ajax({
|
||||
url: "{% url 'anatomy:exam_json_edit' pk=exam.pk %}",
|
||||
//url: "{% url 'anatomy:exam_json_edit' pk=exam.pk %}",
|
||||
url: "{% url 'generic:generic_exam_json_edit' %}",
|
||||
data: {
|
||||
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||
set_open_access: false,
|
||||
type: "anatomy",
|
||||
exam_id: "{{exam.pk}}",
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
|
||||
Reference in New Issue
Block a user