From 2e3fb6d521157380ec5a417b02384035a59ad7e7 Mon Sep 17 00:00:00 2001 From: Aevann Date: Mon, 2 Oct 2023 18:00:40 +0300 Subject: [PATCH] fix inline emoji search inside "report post" modal in post_listing.html --- files/assets/js/emoji_modal.js | 2 +- files/templates/post_listing.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 09277bdcb..94f1d5d97 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -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) } }); diff --git a/files/templates/post_listing.html b/files/templates/post_listing.html index 597776939..166b3e2b0 100644 --- a/files/templates/post_listing.html +++ b/files/templates/post_listing.html @@ -261,6 +261,7 @@ {% if v.admin_level >= PERMS['USER_BAN'] %} {% include "modals/punish.html" %} {% endif %} + {% include "modals/emoji.html" %} {% endif %}