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