.
This commit is contained in:
@@ -32,7 +32,7 @@
|
|||||||
$(".view-question-link").on("click", function (e) {
|
$(".view-question-link").on("click", function (e) {
|
||||||
console.log("click", e)
|
console.log("click", e)
|
||||||
question_number = e.currentTarget.dataset.qn;
|
question_number = e.currentTarget.dataset.qn;
|
||||||
$("single-dicom-viewer").empty();
|
$("#single-dicom-viewer").empty();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `{% url 'rapids:question_review' pk=exam.pk %}`,
|
url: `{% url 'rapids:question_review' pk=exam.pk %}`,
|
||||||
data: {
|
data: {
|
||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
window.dispatchEvent(event);
|
window.dispatchEvent(event);
|
||||||
$(".question-display-block .answers").empty().append(data.answers.toString());
|
$(".question-display-block .answers").empty().append(data.answers.toString());
|
||||||
$(".question-display-block .question-number").empty().append(question_number);
|
$(".question-display-block .question-number").empty().append(question_number+1);
|
||||||
// show some message according to the response.
|
// show some message according to the response.
|
||||||
// For eg. A message box showing that the status has been changed
|
// For eg. A message box showing that the status has been changed
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user