« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/client/sidebar-search.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/js/client/sidebar-search.js')
-rw-r--r--src/static/js/client/sidebar-search.js4
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));