Focus searchbox when emotelist modal is shown

This commit is contained in:
Xaekai 2022-02-07 14:43:10 -08:00
parent 24fdc3639a
commit 0226d73272

View file

@ -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);