From 119b6a62b8a2d4fb63c55e7b4846a6b52acece70 Mon Sep 17 00:00:00 2001 From: Xaekai Date: Mon, 7 Feb 2022 14:43:10 -0800 Subject: [PATCH] Focus searchbox when emotelist modal is shown --- www/js/ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/js/ui.js b/www/js/ui.js index 41abb06b..a9c84d22 100644 --- a/www/js/ui.js +++ b/www/js/ui.js @@ -882,6 +882,7 @@ $("#emotelistbtn").on('click', function () { EMOTELISTMODAL.modal(); }); +EMOTELISTMODAL.on('shown.bs.modal', function () { $('.emotelist-search').trigger('focus') }); EMOTELISTMODAL.find(".emotelist-alphabetical").change(function () { USEROPTS.emotelist_sort = this.checked; setOpt("emotelist_sort", USEROPTS.emotelist_sort);