Skip to content

Commit

Permalink
Remove obsolete query suggestion logic: accept_suggestion (flexsearch)
Browse files Browse the repository at this point in the history
  • Loading branch information
schnerring committed Oct 15, 2021
1 parent 7debd0a commit a3a6365
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions assets/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,6 @@ Source:
;

search.addEventListener('input', show_results, true);
suggestions.addEventListener('click', accept_suggestion, true);

function show_results(){
const maxResult = 5;
Expand Down Expand Up @@ -157,15 +156,4 @@ Source:
if(suggestions.childElementCount == maxResult) break;
}
}

function accept_suggestion(){

while(suggestions.lastChild){

suggestions.removeChild(suggestions.lastChild);
}

return false;
}

}());

0 comments on commit a3a6365

Please sign in to comment.