From aa06fd888f62c83014f0acdeef675bb78d726ddc Mon Sep 17 00:00:00 2001 From: Ross Date: Wed, 1 Dec 2021 20:37:11 +0000 Subject: [PATCH] . --- atlas/templates/atlas/series_form.html | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/atlas/templates/atlas/series_form.html b/atlas/templates/atlas/series_form.html index 5596331b..cc3559bf 100755 --- a/atlas/templates/atlas/series_form.html +++ b/atlas/templates/atlas/series_form.html @@ -205,6 +205,12 @@ const readFile = (file, el) => { reader(file).then(reader => { + console.log("hello", file, el, image) + if (!$("#id_examination").find(":selected").length) { + var byteArray = new Uint8Array(reader.result); + console.log("etrxact") + extractDicomStudyDescription(byteArray); + } var image = new Image(); image.height = 100; image.title = file.name; @@ -215,12 +221,6 @@ //images.push(reader.result); loadViewer(images); - console.log(file, el, image) - if (!$("#id_examination").find(":selected").length) { - var byteArray = new Uint8Array(reader.result); - console.log("etrxact") - extractDicomStudyDescription(byteArray); - } }); }