Fix search (#645)
This commit is contained in:
parent
3bc5d907f4
commit
62a727c041
|
@ -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';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue