This commit is contained in:
kek7198 2021-12-09 16:12:29 -06:00
parent 9966f6d10a
commit 07c0a7e756
2 changed files with 5 additions and 5 deletions

View file

@ -9,9 +9,9 @@ function collapse_comment(comment_id) {
const closed = element.classList.toggle("collapsed")
const top = element.getBoundingClientRect().y
const text = document.getElementById('comment-text-'+comment_id)
const actions = document.getElementById('comment-actions-'+comment_id)
const repliesOf = document.getElementById('replies-of-'+comment_id)
const text = document.getElementById(`comment-text-${comment_id}`)
const actions = document.getElementById(`comment-${comment_id}-actions`)
const repliesOf = document.getElementById(`replies-of-${comment_id}`)
const arr = [text, actions, repliesOf];

View file

@ -37,7 +37,7 @@
{% endif %}
<script defer src="/assets/js/popover.js?v=16"></script>
<script defer src="/assets/js/comments.js?v=6"></script>
<script defer src="/assets/js/comments.js?v=7"></script>
{% include "expanded_image_modal.html" %}
@ -179,7 +179,7 @@
{% endfor %}
</div>
{% elif "notifications" in request.path %}
<div id="replies-of-{{c.id}}" class="hidden d-md-block">
<div id="replies-of-{{c.id}}" class="hidden md:block">
{% set standalone=False %}
{% for reply in replies %}
{{single_comment(reply, level=level+1)}}