From 73ff78d0f58d23a3cbc141fcd5403b41163dffd5 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 12 Sep 2022 06:38:04 +0200 Subject: [PATCH] fix 1st part of this https://rdrama.org/post/18459/marseycapywalking-megathread-for-bugs-and-suggestions/2705204?context=8#context --- files/assets/js/emoji_modal.js | 2 +- files/templates/util/assetcache.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/files/assets/js/emoji_modal.js b/files/assets/js/emoji_modal.js index 938718cfa..9038086fc 100644 --- a/files/assets/js/emoji_modal.js +++ b/files/assets/js/emoji_modal.js @@ -307,7 +307,7 @@ function switchEmojiTab(e) } async function start_search() { - emojiSearcher.addQuery(emojiSearchBarDOM.value.trim()); + emojiSearcher.addQuery(emojiSearchBarDOM.value.trim().toLowerCase()); // Remove any selected tab, now it is meaningless for(let i = 0; i < classesSelectorDOM.children.length; i++) diff --git a/files/templates/util/assetcache.html b/files/templates/util/assetcache.html index 4771ec51d..76785734a 100644 --- a/files/templates/util/assetcache.html +++ b/files/templates/util/assetcache.html @@ -21,7 +21,7 @@ set CACHE_VER = { 'js/comments_admin.js': 4000, 'js/comments_v.js': 4001, 'js/submission_listing.js': 4000, - 'js/emoji_modal.js': 4001, + 'js/emoji_modal.js': 4002, 'js/formatting.js': 4000, 'js/lottery.js': 4000, 'js/marked.js': 4006,