From 2dc6836e846e7a5b79a4baa5e03904186d9468ac Mon Sep 17 00:00:00 2001 From: Ross Date: Thu, 11 Nov 2021 15:08:31 +0000 Subject: [PATCH] . --- rapids/templates/rapids/rapid_form.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index 41269fa5..bb2e45c7 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -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 = $("
").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();