fd
This commit is contained in:
parent
0a88fd57ac
commit
98a73793b7
3 changed files with 2 additions and 4 deletions
|
@ -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;
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue