remotes/1693045480750635534/spooky-22
Aevann1 2021-07-24 20:32:20 +02:00
parent d52eb51d87
commit fd2950b6da
2 changed files with 2 additions and 5 deletions

View File

@ -262,9 +262,6 @@
submitbutton=document.getElementById("reportPostButton");
reason=document.getElementById("reason").value;
console.log(reason);
submitbutton.onclick = function() {
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Reporting post';
@ -274,7 +271,7 @@
xhr.open("POST", '/api/flag/post/'+id, true);
var form = new FormData()
form.append("formkey", formkey());
form.append("reason", reason);
form.append("reason", document.getElementById("reason").value);
xhr.withCredentials=true;

View File

@ -15,7 +15,7 @@
<div class="h6">We're sorry something here is wrong.</div>
<small class="form-text text-muted">Please enter a reason for flagging below.</small>
<pre></pre>
<input name="reason" type="text" maxlength="100" id="reason" class="form-control"/>
<input maxlength="100" id="reason" class="form-control"/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link text-muted" data-dismiss="modal">Cancel</button>