diff options
Diffstat (limited to 'src/static/js/client/sidebar-search.js')
| -rw-r--r-- | src/static/js/client/sidebar-search.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js index 7d39f06e..94f1e4ef 100644 --- a/src/static/js/client/sidebar-search.js +++ b/src/static/js/client/sidebar-search.js @@ -939,6 +939,8 @@ function showSidebarSearchResults(results) { } if (shownAnyResults) { + info.results.classList.add('has-results'); + showContextControls(); cssProp(info.endSearchRule, 'display', 'block'); @@ -946,6 +948,8 @@ function showSidebarSearchResults(results) { tidySidebarSearchColumn(); } else { + info.results.classList.remove('has-results'); + const p = document.createElement('p'); p.classList.add('wiki-search-no-results'); p.appendChild(templateContent(info.noResultsString)); |