Skip to content

Commit fecdc68

Browse files
committed
Fixed problem with the client side search engine (HTML output)
When switching to a different filter that did not have any associated search results, the search result window was not updated.
1 parent 219fc53 commit fecdc68

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/html/search.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,11 @@ function SearchBox(name, resultsPath, extension)
356356
document.getElementById("NoMatches").style.display="none";
357357
}
358358

359-
searchResults.Search(searchValue);
359+
if (idx!=-1) {
360+
searchResults.Search(searchValue);
361+
} else { // no file with search results => force empty search results
362+
searchResults.Search('====');
363+
}
360364

361365
if (domPopupSearchResultsWindow.style.display!='block')
362366
{

0 commit comments

Comments
 (0)