This commit is contained in:
Ross
2021-11-11 22:09:19 +00:00
parent 4c07405864
commit 66146f0adf
+7 -6
View File
@@ -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) {