From 0226d73272dc1e2e0f000e8fffeb9bbc91665c1f 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);