.
This commit is contained in:
@@ -177,7 +177,7 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
|
|||||||
console.log("loadDicomViewer", images_to_load);
|
console.log("loadDicomViewer", images_to_load);
|
||||||
let single_dicom = document.getElementById("single-dicom-viewer");
|
let single_dicom = document.getElementById("single-dicom-viewer");
|
||||||
if (single_dicom) {
|
if (single_dicom) {
|
||||||
|
$(single_dicom).empty()
|
||||||
let images = single_dicom.dataset.images;
|
let images = single_dicom.dataset.images;
|
||||||
|
|
||||||
if (images_to_load != undefined) {
|
if (images_to_load != undefined) {
|
||||||
|
|||||||
@@ -181,7 +181,7 @@
|
|||||||
if (file_drop_number < 1) {
|
if (file_drop_number < 1) {
|
||||||
toastr.warning(`Drop failed (no files), try again.`);
|
toastr.warning(`Drop failed (no files), try again.`);
|
||||||
} else {
|
} 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
|
// Loop through each dropped file and try to assign to an
|
||||||
@@ -348,7 +348,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
async function loadDicomViewerAndFileImages(callback) {
|
async function loadDicomViewerAndFileImages(callback) {
|
||||||
$("#single-dicom-viewer").empty()
|
//$("#single-dicom-viewer").empty()
|
||||||
//images = []
|
//images = []
|
||||||
//Function that returns a promise to read the file
|
//Function that returns a promise to read the file
|
||||||
const reader = (file) => {
|
const reader = (file) => {
|
||||||
|
|||||||
@@ -177,7 +177,7 @@ function loadDicomViewer(images_to_load, annotations_to_load) {
|
|||||||
console.log("loadDicomViewer", images_to_load);
|
console.log("loadDicomViewer", images_to_load);
|
||||||
let single_dicom = document.getElementById("single-dicom-viewer");
|
let single_dicom = document.getElementById("single-dicom-viewer");
|
||||||
if (single_dicom) {
|
if (single_dicom) {
|
||||||
|
$(single_dicom).empty()
|
||||||
let images = single_dicom.dataset.images;
|
let images = single_dicom.dataset.images;
|
||||||
|
|
||||||
if (images_to_load != undefined) {
|
if (images_to_load != undefined) {
|
||||||
|
|||||||
Reference in New Issue
Block a user