fix inline emoji search inside "report post" modal in post_listing.html

pull/211/head
Aevann 2023-10-02 18:00:40 +03:00
parent cb4b05047e
commit 2e3fb6d521
2 changed files with 2 additions and 1 deletions

View File

@ -429,7 +429,7 @@ function populate_speed_emoji_modal(results, textbox)
close_inline_speed_emoji_modal()
textbox.value = textbox.value.replace(new RegExp(current_word+"(?=\\s|$)", "gi"), `:${name}: `)
textbox.focus()
if (location.pathname != '/chat') {
if (typeof markdown === "function") {
markdown(textbox)
}
});

View File

@ -261,6 +261,7 @@
{% if v.admin_level >= PERMS['USER_BAN'] %}
{% include "modals/punish.html" %}
{% endif %}
{% include "modals/emoji.html" %}
{% endif %}
<script defer src="{{'js/vendor/clipboard.js' | asset}}"></script>