.
This commit is contained in:
@@ -15,14 +15,22 @@
|
||||
</div>
|
||||
{% render_table table %}
|
||||
|
||||
<button id="button-select-add-exam"></button>
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$("#button-select-add-exam").click(function () {
|
||||
// Find selected objects
|
||||
|
||||
|
||||
|
||||
$.ajax({
|
||||
url: "{% url 'rapids:exam_json_edit' pk=exam.pk %}",
|
||||
url: "{% url 'generic:generic_exam_json_edit' %}",
|
||||
data: {
|
||||
csrfmiddlewaretoken: "{{ csrf_token }}",
|
||||
add_exam_questions: true,
|
||||
add_exam_questions: $("table input:checked").serialize(),
|
||||
type: "rapid",
|
||||
exam_id: exam_id,
|
||||
},
|
||||
type: "POST",
|
||||
dataType: "json",
|
||||
|
||||
Reference in New Issue
Block a user