.
This commit is contained in:
@@ -32,6 +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();
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: `{% url 'rapids:question_review' pk=exam.pk %}`,
|
url: `{% url 'rapids:question_review' pk=exam.pk %}`,
|
||||||
data: {
|
data: {
|
||||||
@@ -50,7 +51,6 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
window.dispatchEvent(event);
|
window.dispatchEvent(event);
|
||||||
$("single-dicom-viewer").empty();
|
|
||||||
$(".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);
|
||||||
// show some message according to the response.
|
// show some message according to the response.
|
||||||
@@ -61,7 +61,7 @@
|
|||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
$(".view-question-link").click();
|
$(".view-question-link").first().click();
|
||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user