This commit is contained in:
Ross
2021-08-19 13:08:52 +01:00
parent a919d3cae2
commit 3fdaa62483
@@ -4,7 +4,7 @@
<div class="question-display-block">
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''>
</div>
<div>Answers: </div>
<div class="answers">Answers: </div>
</div>
<div class="rapids">
<h2>Exam: {{ exam.name }}</h2>
@@ -44,9 +44,12 @@
.done(function (data) {
console.log(data);
if (data.status == "success") {
toastr.info('Exam state changed.')
}
let event = new CustomEvent('loadDicomViewerUrls', {
"detail": data.images
});
window.dispatchEvent(event);
$(".question-display-block .answers").append(data.answers.toString());
// show some message according to the response.
// For eg. A message box showing that the status has been changed
})