From 76b0ff53e8e3b5ece482624a7629258ef8b26537 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Fri, 26 Mar 2021 01:35:26 +0000 Subject: [PATCH] Added select2 --- src/js/word-filter.js | 6 +++++- static/index.html | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/js/word-filter.js b/src/js/word-filter.js index a8d105174..ced7eac18 100644 --- a/src/js/word-filter.js +++ b/src/js/word-filter.js @@ -1,4 +1,6 @@ +import { setCustomThemeColors } from "./config"; import * as Misc from "./misc"; +import * as ThemeColors from "./theme-colors"; //import * as config from "./userconfig"; export async function showWordFilterPopup(){ @@ -13,6 +15,9 @@ export async function showWordFilterPopup(){ `) }) + $("#languageList").select2({ + minimumResultsForSearch: -1, + }); } function hideWordFilterPopup(){ @@ -70,7 +75,6 @@ async function filter(language){ let test2 = regexcl.test(word); if((test1 && !test2 || test1 && filterout == "") && word.length <= maxLength && word.length >= minLength){ filteredWords.push(word); - console.log(test1, test2, word, filterout, filterin, regexcl); } } return filteredWords; diff --git a/static/index.html b/static/index.html index 856c6c157..a4571c513 100644 --- a/static/index.html +++ b/static/index.html @@ -5,6 +5,7 @@ Monkeytype + @@ -3776,5 +3777,6 @@ +