fdsfds
This commit is contained in:
parent
cd749ad88f
commit
68dfecdb35
2 changed files with 18 additions and 20 deletions
|
@ -815,7 +815,6 @@
|
|||
{% include "expanded_image_modal.html" %}
|
||||
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
function poll_vote(cid, parentid) {
|
||||
{% if v %}
|
||||
for(let el of document.getElementsByClassName('presult-'+parentid)) {
|
||||
|
@ -837,6 +836,7 @@
|
|||
{% endif %}
|
||||
}
|
||||
|
||||
window.addEventListener("load",function(event) {
|
||||
const popoverTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]'));
|
||||
|
||||
const popoverList = popoverTriggerList.map(function(popoverTriggerEl) {
|
||||
|
|
|
@ -875,7 +875,6 @@
|
|||
|
||||
{% if not p.comment_count %}
|
||||
<script>
|
||||
window.addEventListener("load",function(event) {
|
||||
function poll_vote(cid) {
|
||||
{% if v %}
|
||||
for(let el of document.getElementsByClassName('presult')) {
|
||||
|
@ -893,7 +892,6 @@
|
|||
document.getElementById('toast-post-error-text').innerText = "Only logged-in users can vote!";
|
||||
{% endif %}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% if v %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue