.
This commit is contained in:
@@ -28,11 +28,12 @@
|
|||||||
parent = $(el.target).parent()
|
parent = $(el.target).parent()
|
||||||
console.log(!parent.hasClass("current"));
|
console.log(!parent.hasClass("current"));
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{% url 'generic:generic_exam_json_edit' %}",
|
url: "{% url exam.app_name|add:':exam_json_edit' %}",
|
||||||
data: {
|
data: {
|
||||||
csrfmiddlewaretoken: "{{csrf_token}}",
|
csrfmiddlewaretoken: "{{csrf_token}}",
|
||||||
edit_cid_user: el.target.dataset.pk,
|
edit_cid_user: el.target.dataset.pk,
|
||||||
add: !parent.hasClass("current"),
|
add: !parent.hasClass("current"),
|
||||||
|
exam_id: $(evt.target).data("exam-id"),
|
||||||
},
|
},
|
||||||
type: "POST",
|
type: "POST",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
|
|||||||
Reference in New Issue
Block a user