deploy: ff097d4432
This commit is contained in:
@@ -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')
|
||||
{
|
||||
|
Reference in New Issue
Block a user