diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index af6a25d9..fb5c49a6 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -363,6 +363,17 @@ $(el).parent().parent().prepend(image); //images.push(reader.result); + + const element = $("
") + + cornerstone.enable(element); + cornerstone.loadAndCacheImage(file).then(function(image) { + cornerstone.displayImage(element, image); + + }); + $(el).parent().parent().prepend(element); + + active_file_inputs.delete(el) if (active_file_inputs.size < 1) { loadViewer();