From a3a636581738b1110d7c518f7f398f21a5e667f4 Mon Sep 17 00:00:00 2001 From: Michael Schnerring <3743342+schnerring@users.noreply.github.com> Date: Fri, 15 Oct 2021 15:13:18 +0200 Subject: [PATCH] Remove obsolete query suggestion logic: accept_suggestion (flexsearch) --- assets/js/index.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/assets/js/index.js b/assets/js/index.js index 058a107..8290ac4 100644 --- a/assets/js/index.js +++ b/assets/js/index.js @@ -117,7 +117,6 @@ Source: ; search.addEventListener('input', show_results, true); - suggestions.addEventListener('click', accept_suggestion, true); function show_results(){ const maxResult = 5; @@ -157,15 +156,4 @@ Source: if(suggestions.childElementCount == maxResult) break; } } - - function accept_suggestion(){ - - while(suggestions.lastChild){ - - suggestions.removeChild(suggestions.lastChild); - } - - return false; - } - }());