.
This commit is contained in:
@@ -151,7 +151,7 @@
|
|||||||
|
|
||||||
|
|
||||||
//readFileAndProcess();
|
//readFileAndProcess();
|
||||||
readFileAndProcess2();
|
readFileAndProcess2(el);
|
||||||
|
|
||||||
// Check if we have selected a examination type
|
// Check if we have selected a examination type
|
||||||
if (!$("#id_examination_to option").length) {
|
if (!$("#id_examination_to option").length) {
|
||||||
@@ -459,11 +459,12 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function readFileAndProcess2(callback) {
|
async function readFileAndProcess2(el) {
|
||||||
|
|
||||||
file_set = $("#image_form_set input[type=file]");
|
//file_set = $("#image_form_set input[type=file]");
|
||||||
|
|
||||||
|
//file_set.each(async (n, el) => {
|
||||||
|
|
||||||
file_set.each(async (n, el) => {
|
|
||||||
if (el.files.length > 0) {
|
if (el.files.length > 0) {
|
||||||
filename = el.files[0].name;
|
filename = el.files[0].name;
|
||||||
// Probably no need to await here anymore
|
// Probably no need to await here anymore
|
||||||
@@ -499,12 +500,12 @@
|
|||||||
active_file_inputs.delete(el)
|
active_file_inputs.delete(el)
|
||||||
console.log("active", active_file_inputs)
|
console.log("active", active_file_inputs)
|
||||||
// Only load once all queued files have been processed
|
// Only load once all queued files have been processed
|
||||||
}
|
|
||||||
})
|
|
||||||
if (active_file_inputs.size < 1) {
|
if (active_file_inputs.size < 1) {
|
||||||
loadViewer();
|
loadViewer();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//})
|
||||||
|
}
|
||||||
|
|
||||||
async function readFileAndProcess(callback) {
|
async function readFileAndProcess(callback) {
|
||||||
//$("#single-dicom-viewer").empty()
|
//$("#single-dicom-viewer").empty()
|
||||||
|
|||||||
Reference in New Issue
Block a user