.
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user