master
Aevann1 2021-10-06 01:24:09 +02:00
parent 8fa2a265da
commit 7551326936
4 changed files with 5 additions and 8 deletions

View File

@ -165,6 +165,7 @@ def api_vote_comment(comment_id, new, v):
@app.post("/vote/poll/<comment_id>")
@auth_required
@validate_formkey
def api_vote_poll(comment_id, v):
vote = request.values.get("vote")

View File

@ -33,7 +33,7 @@
{% if v %}
{% include "award_modal.html" %}
<script src="/assets/js/comments_v.js?v=9"></script>
<script src="/assets/js/comments_v.js?v=10"></script>
{% endif %}
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>

View File

@ -22,13 +22,9 @@
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting post';
this.disabled = true;
post('/delete_post/' + id,
callback = function() {
post('/delete_post/' + id);
location.reload();
}
)
}
document.getElementById("deletePostButton-mobile").onclick = delete_post;

View File

@ -36,7 +36,7 @@
{% if 'rdrama' not in request.host %}
{% if v %}
<script src="/assets/js/comments_v.js?v=9"></script>
<script src="/assets/js/comments_v.js?v=10"></script>
{% include "award_modal.html" %}
{% include "emoji_modal.html" %}
{% include "gif_modal.html" %}