fddf
parent
d52eb51d87
commit
fd2950b6da
|
@ -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;
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue