gdf
This commit is contained in:
parent
ade5876f3d
commit
104f85ff0f
6 changed files with 8 additions and 4 deletions
|
@ -60,6 +60,7 @@ function report_commentModal(id, author) {
|
||||||
btn = document.getElementById("reportCommentButton")
|
btn = document.getElementById("reportCommentButton")
|
||||||
btn.innerHTML='Report comment';
|
btn.innerHTML='Report comment';
|
||||||
btn.disabled = false;
|
btn.disabled = false;
|
||||||
|
btn.classList.remove('disabled');
|
||||||
|
|
||||||
reason = document.getElementById("reason-comment")
|
reason = document.getElementById("reason-comment")
|
||||||
reason.value = ""
|
reason.value = ""
|
||||||
|
@ -67,6 +68,7 @@ function report_commentModal(id, author) {
|
||||||
btn.onclick = function() {
|
btn.onclick = function() {
|
||||||
this.innerHTML='Reporting comment';
|
this.innerHTML='Reporting comment';
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
|
this.classList.add('disabled');
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", '/report/comment/'+id);
|
xhr.open("POST", '/report/comment/'+id);
|
||||||
xhr.setRequestHeader('xhr', 'xhr');
|
xhr.setRequestHeader('xhr', 'xhr');
|
||||||
|
|
|
@ -4,6 +4,7 @@ function report_postModal(id) {
|
||||||
document.getElementById("reportPostFormBefore").classList.remove('d-none');
|
document.getElementById("reportPostFormBefore").classList.remove('d-none');
|
||||||
document.getElementById("reportPostFormAfter").classList.add('d-none');
|
document.getElementById("reportPostFormAfter").classList.add('d-none');
|
||||||
submitbutton.disabled = false;
|
submitbutton.disabled = false;
|
||||||
|
submitbutton.classList.remove('disabled');
|
||||||
submitbutton.innerHTML='Report post';
|
submitbutton.innerHTML='Report post';
|
||||||
|
|
||||||
reason = document.getElementById("reason")
|
reason = document.getElementById("reason")
|
||||||
|
@ -13,6 +14,7 @@ function report_postModal(id) {
|
||||||
|
|
||||||
this.innerHTML='Reporting post';
|
this.innerHTML='Reporting post';
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
|
this.classList.add('disabled');
|
||||||
|
|
||||||
const xhr = new XMLHttpRequest();
|
const xhr = new XMLHttpRequest();
|
||||||
xhr.open("POST", '/report/post/'+id);
|
xhr.open("POST", '/report/post/'+id);
|
||||||
|
|
|
@ -14,8 +14,8 @@ function viewmore(pid,sort,offset,ids) {
|
||||||
return bootstrap.Tooltip.getOrCreateInstance(element);
|
return bootstrap.Tooltip.getOrCreateInstance(element);
|
||||||
});
|
});
|
||||||
popovertrigger()
|
popovertrigger()
|
||||||
btn.disabled = false;
|
|
||||||
}
|
}
|
||||||
|
btn.disabled = false;
|
||||||
}
|
}
|
||||||
xhr.send(form)
|
xhr.send(form)
|
||||||
}
|
}
|
|
@ -966,7 +966,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script src="/static/assets/js/marked.js?a=242"></script>
|
<script src="/static/assets/js/marked.js?a=242"></script>
|
||||||
<script src="/static/assets/js/comments_v.js?a=248"></script>
|
<script src="/static/assets/js/comments_v.js?a=249"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="/static/assets/js/clipboard.js?a=250"></script>
|
<script src="/static/assets/js/clipboard.js?a=250"></script>
|
||||||
|
|
|
@ -32,4 +32,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/static/assets/js/report_post_modal.js?a=240"></script>
|
<script src="/static/assets/js/report_post_modal.js?a=241"></script>
|
|
@ -963,7 +963,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if offset %}
|
{% if offset %}
|
||||||
<script src="/static/assets/js/viewmore.js?a=245"></script>
|
<script src="/static/assets/js/viewmore.js?a=246"></script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% elif not p.replies and p.deleted_utc == 0 %}
|
{% elif not p.replies and p.deleted_utc == 0 %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue