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