Fix search (#645)

This commit is contained in:
Guillaume Gomez 2018-03-16 00:37:08 +01:00 committed by Michael Bryan
parent 3bc5d907f4
commit 62a727c041
1 changed files with 4 additions and 0 deletions

View File

@ -351,8 +351,10 @@ window.search = window.search || {};
function showSearch(yes) { function showSearch(yes) {
if (yes) { if (yes) {
searchbar_outer.style.display = 'block'; searchbar_outer.style.display = 'block';
content.style.display = 'none';
searchicon.setAttribute('aria-expanded', 'true'); searchicon.setAttribute('aria-expanded', 'true');
} else { } else {
content.style.display = 'block';
searchbar_outer.style.display = 'none'; searchbar_outer.style.display = 'none';
searchresults_outer.style.display = 'none'; searchresults_outer.style.display = 'none';
searchbar.value = ''; searchbar.value = '';
@ -364,8 +366,10 @@ window.search = window.search || {};
function showResults(yes) { function showResults(yes) {
if (yes) { if (yes) {
searchbar_outer.style.display = 'block'; searchbar_outer.style.display = 'block';
content.style.display = 'none';
searchresults_outer.style.display = 'block'; searchresults_outer.style.display = 'block';
} else { } else {
content.style.display = 'block';
searchresults_outer.style.display = 'none'; searchresults_outer.style.display = 'none';
} }
} }