.
This commit is contained in:
@@ -465,12 +465,13 @@
|
|||||||
|
|
||||||
$(el).parent().parent().find(".temp-thumb").remove();
|
$(el).parent().parent().find(".temp-thumb").remove();
|
||||||
|
|
||||||
|
let imageId;
|
||||||
if (el.files[0].type.startsWith("image")) {
|
if (el.files[0].type.startsWith("image")) {
|
||||||
const imageId = `${url}`;
|
imageId = `${url}`;
|
||||||
} else {
|
} else {
|
||||||
const imageId = `wadouri:${url}`;
|
imageId = `wadouri:${url}`;
|
||||||
}
|
}
|
||||||
const element = $(`<div class='temp-thumb' src=${imageId}></div>`).get(0)
|
const element = $(`<div class='temp-thumb' src=${url}></div>`).get(0)
|
||||||
$(el).parent().parent().prepend(element);
|
$(el).parent().parent().prepend(element);
|
||||||
cornerstone.enable(element);
|
cornerstone.enable(element);
|
||||||
cornerstone.loadAndCacheImage(imageId).then(function (image) {
|
cornerstone.loadAndCacheImage(imageId).then(function (image) {
|
||||||
|
|||||||
Reference in New Issue
Block a user