forked from rDrama/rDrama
fix
parent
62fb10d373
commit
1db2426b33
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
{% include "CHRISTMAS/expanded_image_modal.html" %}
|
{% include "CHRISTMAS/expanded_image_modal.html" %}
|
||||||
|
|
||||||
<script defer>
|
<!-- <script defer>
|
||||||
function poll_vote(cid, parentid) {
|
function poll_vote(cid, parentid) {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
||||||
|
@ -33,8 +33,7 @@
|
||||||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
</script>
|
</script> -->
|
||||||
|
|
||||||
|
|
||||||
{% macro single_comment(c, level=1) %}
|
{% macro single_comment(c, level=1) %}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
{% block title %}
|
{% block title %}
|
||||||
|
|
||||||
{% if 'rama' not in request.host %}
|
{% if 'rama' not in request.host %}
|
||||||
<script defer>
|
<!-- <script defer>
|
||||||
function poll_vote(cid) {
|
function poll_vote(cid) {
|
||||||
{% if v %}
|
{% if v %}
|
||||||
var type = document.getElementById(cid).checked;
|
var type = document.getElementById(cid).checked;
|
||||||
|
@ -28,10 +28,10 @@
|
||||||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
||||||
{% endif %}
|
{% endif %}
|
||||||
}
|
}
|
||||||
</script>
|
</script> -->
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script defer src="/assets/CHRISTMAS/js/comments_v.js?v=200"></script>
|
<!-- <script defer src="/assets/CHRISTMAS/js/comments_v.js?v=200"></script> -->
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -616,9 +616,6 @@
|
||||||
|
|
||||||
{% if v %}
|
{% if v %}
|
||||||
<script defer src="/assets/CHRISTMAS/js/vote.js?v=200"></script>
|
<script defer src="/assets/CHRISTMAS/js/vote.js?v=200"></script>
|
||||||
{% if not p.comment_count %}
|
|
||||||
<script defer src="/assets/CHRISTMAS/js/comments_v.js?v=200"></script>
|
|
||||||
{% endif %}
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
|
{% if v and (v.id == p.author_id or v.admin_level > 1 and v.admin_level > 2) %}
|
||||||
|
|
Loading…
Reference in New Issue