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 class="question-display-block">
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''> <div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''>
</div> </div>
<div>Answers: </div> <div class="answers">Answers: </div>
</div> </div>
<div class="rapids"> <div class="rapids">
<h2>Exam: {{ exam.name }}</h2> <h2>Exam: {{ exam.name }}</h2>
@@ -44,9 +44,12 @@
.done(function (data) { .done(function (data) {
console.log(data); console.log(data);
if (data.status == "success") { let event = new CustomEvent('loadDicomViewerUrls', {
toastr.info('Exam state changed.') "detail": data.images
} });
window.dispatchEvent(event);
$(".question-display-block .answers").append(data.answers.toString());
// 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
}) })