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>")
|
@app.post("/vote/poll/<comment_id>")
|
||||||
@auth_required
|
@auth_required
|
||||||
|
@validate_formkey
|
||||||
def api_vote_poll(comment_id, v):
|
def api_vote_poll(comment_id, v):
|
||||||
|
|
||||||
vote = request.values.get("vote")
|
vote = request.values.get("vote")
|
||||||
|
|
|
@ -33,7 +33,7 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
{% include "award_modal.html" %}
|
{% 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 %}
|
{% endif %}
|
||||||
|
|
||||||
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js"></script>
|
||||||
|
|
|
@ -22,12 +22,8 @@
|
||||||
|
|
||||||
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting post';
|
this.innerHTML='<span class="spinner-border spinner-border-sm mr-2" role="status" aria-hidden="true"></span>Deleting post';
|
||||||
this.disabled = true;
|
this.disabled = true;
|
||||||
post('/delete_post/' + id,
|
post('/delete_post/' + id);
|
||||||
callback = function() {
|
location.reload();
|
||||||
|
|
||||||
location.reload();
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById("deletePostButton-mobile").onclick = delete_post;
|
document.getElementById("deletePostButton-mobile").onclick = delete_post;
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
{% if 'rdrama' not in request.host %}
|
{% if 'rdrama' not in request.host %}
|
||||||
{% if v %}
|
{% 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 "award_modal.html" %}
|
||||||
{% include "emoji_modal.html" %}
|
{% include "emoji_modal.html" %}
|
||||||
{% include "gif_modal.html" %}
|
{% include "gif_modal.html" %}
|
||||||
|
|
Loading…
Reference in New Issue