From 0c1dfc863d321f5c0082d2b769d377668ef9e439 Mon Sep 17 00:00:00 2001 From: Ross Date: Sun, 31 Oct 2021 23:29:14 +0000 Subject: [PATCH] . --- anatomy/static/js/anatomy.js | 2 +- rapids/templates/rapids/rapid_form.html | 4 ++-- static/js/anatomy.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/anatomy/static/js/anatomy.js b/anatomy/static/js/anatomy.js index 49285a14..25ecdfb6 100644 --- a/anatomy/static/js/anatomy.js +++ b/anatomy/static/js/anatomy.js @@ -177,7 +177,7 @@ function loadDicomViewer(images_to_load, annotations_to_load) { console.log("loadDicomViewer", images_to_load); let single_dicom = document.getElementById("single-dicom-viewer"); if (single_dicom) { - + $(single_dicom).empty() let images = single_dicom.dataset.images; if (images_to_load != undefined) { diff --git a/rapids/templates/rapids/rapid_form.html b/rapids/templates/rapids/rapid_form.html index b2bd6ed9..16964d86 100755 --- a/rapids/templates/rapids/rapid_form.html +++ b/rapids/templates/rapids/rapid_form.html @@ -181,7 +181,7 @@ if (file_drop_number < 1) { toastr.warning(`Drop failed (no files), try again.`); } else { - toastr.warning(`Loading ${file_drop_number} dropped image(s).`); + toastr.info(`Loading ${file_drop_number} dropped image(s).`); } // Loop through each dropped file and try to assign to an @@ -348,7 +348,7 @@ } async function loadDicomViewerAndFileImages(callback) { - $("#single-dicom-viewer").empty() + //$("#single-dicom-viewer").empty() //images = [] //Function that returns a promise to read the file const reader = (file) => { diff --git a/static/js/anatomy.js b/static/js/anatomy.js index 49285a14..25ecdfb6 100644 --- a/static/js/anatomy.js +++ b/static/js/anatomy.js @@ -177,7 +177,7 @@ function loadDicomViewer(images_to_load, annotations_to_load) { console.log("loadDicomViewer", images_to_load); let single_dicom = document.getElementById("single-dicom-viewer"); if (single_dicom) { - + $(single_dicom).empty() let images = single_dicom.dataset.images; if (images_to_load != undefined) {