From 8f374cd78dbe2bd16c3b2a2b6cf10a90d1a42704 Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 22:51:45 +0000 Subject: [PATCH] . --- static/js/dicomViewer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/static/js/dicomViewer.js b/static/js/dicomViewer.js index 8b8fcc47..a50ccceb 100644 --- a/static/js/dicomViewer.js +++ b/static/js/dicomViewer.js @@ -606,7 +606,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l }); } - function loadCornerstoneThumb(image) { + function loadCornerstoneThumb(image, id) { let img = $("
").get(0); img.id = "thumb-image-" + id; img.class = "thumbnail"; @@ -667,14 +667,14 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l dfile ); cornerstone.loadAndCacheImage(imageId).then(function (image) { - loadCornerstoneThumb(image); + loadCornerstoneThumb(image, id); }); //.catch( function(error) { }); } } else { if (image_url.startsWith("wadouri")) { cornerstone.loadAndCacheImage(image_url).then(function (image) { - loadCornerstoneThumb(image); + loadCornerstoneThumb(image, id); }); } else if ((!image_url.endsWith("dicom") && !image_url.endsWith("dcm")) || image_url.startsWith("base64")) { img = $("", { @@ -693,7 +693,7 @@ export function loadCornerstone(main_element, db, images, annotations_to_load, l let url = "wadouri:" + image_url; cornerstone.loadAndCacheImage(url).then(function (image) { - loadCornerstoneThumb(image); + loadCornerstoneThumb(image, id); }); } }