master
Aevann1 2021-07-24 20:52:36 +02:00
parent 88c3eb9c93
commit 7490af0a91
3 changed files with 2 additions and 4 deletions

View File

@ -229,7 +229,7 @@
xhr.open("POST", '/api/flag/comment/'+id, true);
var form = new FormData()
form.append("formkey", formkey());
console.log(document.getElementById("reason").value)
console.log(document.getElementById("reason-comment").value)
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 reporting below.</small>
<pre></pre>
<input maxlength="100" id="reason" class="form-control"/>
<input maxlength="100" id="reason-comment" class="form-control"/>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-link text-muted" data-dismiss="modal">Cancel</button>

View File

@ -3,11 +3,9 @@
<script>
var date = new Date('{{p.created_datetime}}');
document.getElementById('timestamp').title = date.toString();
document.getElementById('timestamp-2').title = date.toString();
{% if p.edited_utc %}
var date = new Date('{{p.edited_datetime}}');
document.getElementById('edited_timestamp').title = date.toString();
document.getElementById('edited_timestamp-2').title = date.toString();
{% endif %}
</script>