This commit is contained in:
Ross
2021-11-11 21:37:35 +00:00
parent ce98f012a4
commit 4a69102cfb
+4
View File
@@ -463,6 +463,9 @@
let url = URL.createObjectURL(el.files[0])
console.log(el.files[0])
console.log(url)
$(el).parent().parent().find(".temp-thumb").remove();
let imageId;
@@ -471,6 +474,7 @@
} else {
imageId = `wadouri:${url}`;
}
console.log(imageId)
const element = $(`<div class='temp-thumb' src=${url}></div>`).get(0)
$(el).parent().parent().prepend(element);
cornerstone.enable(element);