master
Aevann 2023-08-08 15:26:32 +03:00
parent 1272d3dd1e
commit 8cabb85079
1 changed files with 7 additions and 2 deletions

View File

@ -512,8 +512,13 @@ function handle_files(input, newfiles) {
checkForRequired();
if (typeof savetext === "function")
savetext();
if (typeof submit_save_files === "function")
submit_save_files("textarea", newfiles);
if (typeof submit_save_files === "function") {
const array = []
for (const x of input.files) {
array.push(x)
}
submit_save_files("textarea", array);
}
}