Skip to content

Commit

Permalink
Fix search (#645)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez authored and Michael-F-Bryan committed Mar 15, 2018
1 parent 3bc5d90 commit 62a727c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/theme/searcher/searcher.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,10 @@ window.search = window.search || {};
function showSearch(yes) {
if (yes) {
searchbar_outer.style.display = 'block';
content.style.display = 'none';
searchicon.setAttribute('aria-expanded', 'true');
} else {
content.style.display = 'block';
searchbar_outer.style.display = 'none';
searchresults_outer.style.display = 'none';
searchbar.value = '';
Expand All @@ -364,8 +366,10 @@ window.search = window.search || {};
function showResults(yes) {
if (yes) {
searchbar_outer.style.display = 'block';
content.style.display = 'none';
searchresults_outer.style.display = 'block';
} else {
content.style.display = 'block';
searchresults_outer.style.display = 'none';
}
}
Expand Down

0 comments on commit 62a727c

Please sign in to comment.