diff --git a/files/assets/js/bottom.js b/files/assets/js/bottom.js index 49ade69f6..203597fca 100644 --- a/files/assets/js/bottom.js +++ b/files/assets/js/bottom.js @@ -175,7 +175,7 @@ function register_new_elements(e) { for (const element of toggleelement) { if (element.classList.contains('registered:toggleelement')) continue element.addEventListener('click', () => { - document.getElementById(element.dataset.toggleelement).classList.toggle(element.dataset.toggleattr); + document.querySelector(element.dataset.toggleelement).classList.toggle(element.dataset.toggleattr); }); element.classList.add('registered:toggleelement'); } diff --git a/files/templates/comments.html b/files/templates/comments.html index 733e040fe..9fde2205c 100644 --- a/files/templates/comments.html +++ b/files/templates/comments.html @@ -143,7 +143,7 @@ {% endif %} - {% if c.active_flags(v) %}{% endif %} + {% if c.active_flags(v) %}{% endif %} {% if c.over_18 %}+18{% endif %} {% if v and v.admin_level >= PERMS['USER_SHADOWBAN'] and c.author.shadowbanned %}{% endif %} {% if c.stickied %} @@ -409,7 +409,7 @@ {% if v and c.author_id == v.id %} - + {% elif v and c.body %} @@ -557,7 +557,7 @@ - + @@ -606,7 +606,7 @@ {% if c.author_id == v.id %} - + {% else %} diff --git a/files/templates/post_actions.html b/files/templates/post_actions.html index 6aab82c62..39741c9fa 100644 --- a/files/templates/post_actions.html +++ b/files/templates/post_actions.html @@ -32,7 +32,7 @@ {% endif %} - + {% endif %} diff --git a/files/templates/post_actions_mobile.html b/files/templates/post_actions_mobile.html index 6e28cb320..57f470d8e 100644 --- a/files/templates/post_actions_mobile.html +++ b/files/templates/post_actions_mobile.html @@ -38,7 +38,7 @@ {% endif %} {% if v.id==p.author_id %} - + {% else %} diff --git a/files/templates/submit.html b/files/templates/submit.html index 426cdd578..e3a6532ed 100644 --- a/files/templates/submit.html +++ b/files/templates/submit.html @@ -54,7 +54,7 @@

-
+
Toggle preview
GIF diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index f90ac6045..c058d0c4a 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -71,7 +71,7 @@ {% if p.is_blocking and not p.ghost %}{% endif %} {% if p.is_blocked and not p.ghost %}{% endif %} {% if p.private %}Draft{% endif %} - {% if p.active_flags(v) %}{% endif %} + {% if p.active_flags(v) %}{% endif %} {% if p.ghost %} 👻 @@ -143,7 +143,7 @@ {% if enable_cancel_button %} - + {% endif %}