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