This commit is contained in:
Aevann1 2022-04-10 01:41:36 +02:00
parent 77ec52f07d
commit 631c0bdc97
4 changed files with 44 additions and 9 deletions

View file

@ -152,6 +152,10 @@ function post_reply(id){
form.append('formkey', formkey());
form.append('parent_id', id);
form.append('body', document.getElementById('reply-form-body-'+id).value);
for (const e of document.getElementById('file-upload').files)
form.append('file', e);
const xhr = new XMLHttpRequest();
xhr.open("post", "/reply");
xhr.setRequestHeader('xhr', 'xhr');