forked from MarseyWorld/MarseyWorld
fix bug
parent
1272d3dd1e
commit
8cabb85079
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue