mirror of
https://github.com/snachodog/just-the-docs.git
synced 2025-04-06 20:21:22 -06:00
Merge pull request #81 from ilivewithian/patch-1
Bug: Can now show single search result.
This commit is contained in:
commit
b77d22cf2e
@ -108,7 +108,7 @@ function initSearch() {
|
||||
} else {
|
||||
var results = index.search(query);
|
||||
|
||||
if (results.length > 1) {
|
||||
if (results.length > 0) {
|
||||
searchResults.classList.add('active');
|
||||
var resultsList = document.createElement('ul');
|
||||
searchResults.appendChild(resultsList);
|
||||
|
Loading…
x
Reference in New Issue
Block a user