Remove obsolete query suggestion logic: accept_suggestion (flexsearch)

This commit is contained in:
Michael Schnerring 2021-10-15 15:13:18 +02:00
parent 7debd0ae62
commit a3a6365817
1 changed files with 0 additions and 12 deletions

View File

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