Remove obsolete query suggestion logic: accept_suggestion (flexsearch)
This commit is contained in:
parent
7debd0ae62
commit
a3a6365817
|
@ -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;
|
||||
}
|
||||
|
||||
}());
|
||||
|
|
Loading…
Reference in New Issue