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