.
This commit is contained in:
@@ -172,8 +172,11 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
|
|||||||
if (images_to_load != undefined) {
|
if (images_to_load != undefined) {
|
||||||
images = images_to_load;
|
images = images_to_load;
|
||||||
//} else if (images.indexOf(",") > 0) {
|
//} else if (images.indexOf(",") > 0) {
|
||||||
} else {
|
} else if (images != undefined) {
|
||||||
images = JSON.parse(images);
|
images = JSON.parse(images);
|
||||||
|
} else {
|
||||||
|
// No images to load
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(images);
|
console.log(images);
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="question-display-block">
|
<div class="question-display-block">
|
||||||
Question <span class="question-number">1</span><br/>
|
Question <span class="question-number">1</span><br/>
|
||||||
<span id="question-title"></span>
|
<span id="question-title"></span><br/>
|
||||||
<span id="question-question"></span>
|
<span id="question-question"></span>
|
||||||
<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>
|
||||||
|
|||||||
@@ -172,8 +172,11 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
|
|||||||
if (images_to_load != undefined) {
|
if (images_to_load != undefined) {
|
||||||
images = images_to_load;
|
images = images_to_load;
|
||||||
//} else if (images.indexOf(",") > 0) {
|
//} else if (images.indexOf(",") > 0) {
|
||||||
} else {
|
} else if (images != undefined) {
|
||||||
images = JSON.parse(images);
|
images = JSON.parse(images);
|
||||||
|
} else {
|
||||||
|
// No images to load
|
||||||
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log(images);
|
console.log(images);
|
||||||
|
|||||||
Reference in New Issue
Block a user