This commit is contained in:
Ross
2021-11-11 15:08:31 +00:00
parent b8e03a3029
commit 2dc6836e84
+3 -1
View File
@@ -467,10 +467,12 @@
const readFile = (file, el) => {
reader(file).then(reader => {
console.log("12345", reader)
$(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)
element.height = 100;
element.width = 100;
const imageId = cornerstoneWADOImageLoader.wadouri.fileManager.add(
file
);
@@ -488,7 +490,6 @@
image.title = file.name;
image.src = reader.result;
image.className = "temp-thumb";
$(el).parent().parent().find(".temp-thumb").remove();
$(el).parent().parent().prepend(image);
//images.push(reader.result);
}
@@ -497,6 +498,7 @@
active_file_inputs.delete(el)
console.log("active", active_file_inputs)
// Only load once all queued files have been processed
if (active_file_inputs.size < 1) {
loadViewer();