This commit is contained in:
rozmansi
2023-07-14 12:52:35 +00:00
parent b46be9f0e8
commit 87ee8b067c
281 changed files with 3167 additions and 2816 deletions

View File

@@ -156,7 +156,7 @@ function SearchBox(name, resultsPath, extension)
this.OnSearchSelectHide = function()
{
this.hideTimeout = setTimeout(this.name +".CloseSelectionWindow()",
this.hideTimeout = setTimeout(this.CloseSelectionWindow.bind(this),
this.closeSelectionTimeout);
}
@@ -211,7 +211,7 @@ function SearchBox(name, resultsPath, extension)
if (searchValue != "") // non-empty search
{
// set timer for search update
this.keyTimeout = setTimeout(this.name + '.Search()',
this.keyTimeout = setTimeout(this.Search.bind(this),
this.keyTimeoutLength);
}
else // empty search field
@@ -356,7 +356,11 @@ function SearchBox(name, resultsPath, extension)
document.getElementById("NoMatches").style.display="none";
}
searchResults.Search(searchValue);
if (idx!=-1) {
searchResults.Search(searchValue);
} else { // no file with search results => force empty search results
searchResults.Search('====');
}
if (domPopupSearchResultsWindow.style.display!='block')
{