diff --git a/files/assets/js/comments.js b/files/assets/js/comments.js index b869a55ec..e251a1017 100644 --- a/files/assets/js/comments.js +++ b/files/assets/js/comments.js @@ -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]; diff --git a/files/templates/comments.html b/files/templates/comments.html index 633282871..ade019ef4 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -37,7 +37,7 @@ {% endif %} - + {% include "expanded_image_modal.html" %} @@ -179,7 +179,7 @@ {% endfor %} {% elif "notifications" in request.path %} -