forked from MarseyWorld/MarseyWorld
dfsfds
parent
8fa2a265da
commit
7551326936
|
@ -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")
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
|
@ -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" %}
|
||||
|
|
Loading…
Reference in New Issue