From b9e9554f4729128c8644be5b2cedd927715436ec Mon Sep 17 00:00:00 2001 From: grandeljay Date: Thu, 16 Jun 2022 14:45:12 +0200 Subject: [PATCH] Improve locale search --- src/assets/js/profile.js | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/assets/js/profile.js b/src/assets/js/profile.js index a9e9b620..408fb659 100644 --- a/src/assets/js/profile.js +++ b/src/assets/js/profile.js @@ -58,12 +58,21 @@ $(function() { } }); - $('.ui.dropdown.channel').dropdown(); - $('.ui.dropdown.locale').dropdown({ - sortSelect : 'natural', - }); $('.ui.progress').progress(); + /** + * Preferences + */ + + /** Language */ + $('.ui.dropdown.locale').dropdown({ + sortSelect : 'natural', + fullTextSearch : true, + }); + + /** Channel */ + $('.ui.dropdown.channel').dropdown(); + var isPWA = navigator.standalone || window.matchMedia('(display-mode: standalone)').matches; if (isPWA) {