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); xhr.open("POST", '/api/flag/comment/'+id, true);
var form = new FormData() var form = new FormData()
form.append("formkey", formkey()); form.append("formkey", formkey());
console.log(document.getElementById("reason").value) console.log(document.getElementById("reason-comment").value)
form.append("reason", document.getElementById("reason").value); form.append("reason", document.getElementById("reason").value);
xhr.withCredentials=true; xhr.withCredentials=true;

View File

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

View File

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