.
This commit is contained in:
@@ -470,7 +470,7 @@
|
|||||||
$(el).parent().parent().find(".temp-thumb").remove();
|
$(el).parent().parent().find(".temp-thumb").remove();
|
||||||
|
|
||||||
if (reader.result.startsWith("data:application/octet-stream;base64")) {
|
if (reader.result.startsWith("data:application/octet-stream;base64")) {
|
||||||
const element = $("<div class='temp-thumb'></div>").get(0)
|
const element = $(`<div class='temp-thumb' src=${reader.result}></div>`).get(0)
|
||||||
$(el).parent().parent().prepend(element);
|
$(el).parent().parent().prepend(element);
|
||||||
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
|
||||||
file
|
file
|
||||||
@@ -526,17 +526,17 @@
|
|||||||
console.log("LOAD VIEWER")
|
console.log("LOAD VIEWER")
|
||||||
// temp fix before starting viewer collapsed
|
// temp fix before starting viewer collapsed
|
||||||
$("#single-dicom-viewer").show()
|
$("#single-dicom-viewer").show()
|
||||||
file_set = $("#image_form_set input[type=file]");
|
//file_set = $("#image_form_set input[type=file]");
|
||||||
|
|
||||||
n = 0;
|
//n = 0;
|
||||||
for (let i = 0; i < file_set.length; i++) {
|
//for (let i = 0; i < file_set.length; i++) {
|
||||||
el = file_set.get(i)
|
// el = file_set.get(i)
|
||||||
if (el.files.length > 0) {
|
// if (el.files.length > 0) {
|
||||||
n++;
|
// n++;
|
||||||
}
|
// }
|
||||||
}
|
//}
|
||||||
|
|
||||||
//image_set = $("#image_form_set img");
|
image_set = $("#image_form_set .temp-thumb").map(function() { return $(this).attr("src")});
|
||||||
//console.log()
|
//console.log()
|
||||||
//if (n == image_set.length) {
|
//if (n == image_set.length) {
|
||||||
const event = new CustomEvent('loadDicomViewer', {
|
const event = new CustomEvent('loadDicomViewer', {
|
||||||
|
|||||||
Reference in New Issue
Block a user