diff --git a/rapids/templates/rapids/exam_scores_user.html b/rapids/templates/rapids/exam_scores_user.html index da9dddd7..2e645008 100644 --- a/rapids/templates/rapids/exam_scores_user.html +++ b/rapids/templates/rapids/exam_scores_user.html @@ -11,8 +11,8 @@
{{ans}} ({{score}})
@@ -32,20 +32,20 @@
console.log("click", e)
question_number = e.currentTarget.dataset.qn;
$.ajax({
- url: `{% url 'rapids:question_review' pk=exam.pk %}`,
- data: {
- csrfmiddlewaretoken: "{{ csrf_token }}",
- question_number: question_number
- },
- type: "POST",
- dataType: "json",
- })
+ url: `{% url 'rapids:question_review' pk=exam.pk %}`,
+ data: {
+ csrfmiddlewaretoken: "{{ csrf_token }}",
+ question_number: question_number
+ },
+ type: "POST",
+ dataType: "json",
+ })
// $.ajax().done(), $.ajax().fail(), $ajax().always() are upto you. Add/change accordingly
.done(function (data) {
console.log(data);
if (data.status == "success") {
- toastr.info('Exam state changed.')
+ toastr.info('Exam state changed.')
}
// show some message according to the response.
// For eg. A message box showing that the status has been changed