fix issue in search
This commit is contained in:
parent
5587f8b8cd
commit
e4bb4f4c2a
1 changed files with 1 additions and 1 deletions
|
@ -151,6 +151,7 @@ function initSearch() {
|
|||
}
|
||||
$searchResults.style.display = term === "" ? "none" : "block";
|
||||
$searchResultsItems.innerHTML = "";
|
||||
currentTerm = term;
|
||||
if (term === "") {
|
||||
return;
|
||||
}
|
||||
|
@ -161,7 +162,6 @@ function initSearch() {
|
|||
return;
|
||||
}
|
||||
|
||||
currentTerm = term;
|
||||
for (var i = 0; i < Math.min(results.length, MAX_ITEMS); i++) {
|
||||
var item = document.createElement("li");
|
||||
item.innerHTML = formatSearchResultItem(results[i], term.split(" "));
|
||||
|
|
Loading…
Reference in a new issue