This commit is contained in:
Ross
2021-09-25 19:30:45 +01:00
parent c0d053f898
commit bbc8258cea
3 changed files with 9 additions and 3 deletions
+4 -1
View File
@@ -172,8 +172,11 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
if (images_to_load != undefined) {
images = images_to_load;
//} else if (images.indexOf(",") > 0) {
} else {
} else if (images != undefined) {
images = JSON.parse(images);
} else {
// No images to load
return
}
console.log(images);
@@ -3,7 +3,7 @@
{% block content %}
<div class="question-display-block">
Question <span class="question-number">1</span><br/>
<span id="question-title"></span>
<span id="question-title"></span><br/>
<span id="question-question"></span>
<div id="single-dicom-viewer" class="dicom-viewer" data-images="" data-annotations=''>
</div>
+4 -1
View File
@@ -172,8 +172,11 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
if (images_to_load != undefined) {
images = images_to_load;
//} else if (images.indexOf(",") > 0) {
} else {
} else if (images != undefined) {
images = JSON.parse(images);
} else {
// No images to load
return
}
console.log(images);