forked from rDrama/rDrama
1
0
Fork 0
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(); checkForRequired();
if (typeof savetext === "function") if (typeof savetext === "function")
savetext(); savetext();
if (typeof submit_save_files === "function") if (typeof submit_save_files === "function") {
submit_save_files("textarea", newfiles); const array = []
for (const x of input.files) {
array.push(x)
}
submit_save_files("textarea", array);
}
} }