diff --git a/files/assets/js/comments_v.js b/files/assets/js/comments_v.js index 6310f5fcbe..7bf5b9b41c 100644 --- a/files/assets/js/comments_v.js +++ b/files/assets/js/comments_v.js @@ -283,6 +283,9 @@ function post_comment(fullname, hide){ input.previousElementSibling.innerHTML = ''; input.value = null; oldfiles[ta.id] = [] + + const ghost_town_box = document.getElementById('ghost-town-box') + if (ghost_town_box) ghost_town_box.remove() } else { showToast(false, getMessageFromJsonData(false, data)); diff --git a/files/templates/util/macros.html b/files/templates/util/macros.html index 034dae8a24..ec2309c6ba 100644 --- a/files/templates/util/macros.html +++ b/files/templates/util/macros.html @@ -167,7 +167,7 @@ {% macro ghost_box(text1, text2, mode, extra_css) %} {# TODO: use in saved (search for "fa-ghost" in source) #} {% if mode == 1 %} -
+
@@ -181,7 +181,7 @@ {% endif %}
{% elif mode == 2 %} -
+

{{text1|safe}}