Get faster results on search form of sidebar

This commit is contained in:
Pierre HUBERT 2019-05-18 18:00:34 +02:00
parent 12ce712263
commit 21cf551fe9

View File

@ -174,9 +174,9 @@ ComunicWeb.components.sideBar.main = {
//Update UI //Update UI
searchResults.style.display searchResults.style.display
= searchInput.value.length < 3 ? "none" : "unset"; = searchInput.value.length < 2 ? "none" : "unset";
if(searchInput.value.length < 3) if(searchInput.value.length < 2)
return; return;
// Perform the search on the server // Perform the search on the server