.
This commit is contained in:
@@ -151,7 +151,7 @@
|
||||
|
||||
|
||||
//readFileAndProcess();
|
||||
readFileAndProcess2();
|
||||
readFileAndProcess2(el);
|
||||
|
||||
// Check if we have selected a examination type
|
||||
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) {
|
||||
filename = el.files[0].name;
|
||||
// Probably no need to await here anymore
|
||||
@@ -499,11 +500,11 @@
|
||||
active_file_inputs.delete(el)
|
||||
console.log("active", active_file_inputs)
|
||||
// Only load once all queued files have been processed
|
||||
}
|
||||
})
|
||||
if (active_file_inputs.size < 1) {
|
||||
loadViewer();
|
||||
}
|
||||
}
|
||||
//})
|
||||
}
|
||||
|
||||
async function readFileAndProcess(callback) {
|
||||
|
||||
Reference in New Issue
Block a user