« get me outta code hell

client: sidebar-search: always restore column when hiding results - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2026-03-31 16:57:09 -0300
committer(quasar) nebula <qznebula@protonmail.com>2026-03-31 16:57:09 -0300
commita96453c584f427ee23d787a1783d5c0a9d14f436 (patch)
tree57b0ad05ee095c7c8c554b423f15798292deddf3 /src
parent0fcac82300bc3bc05f76875ba3237ca1a4aab1e9 (diff)
client: sidebar-search: always restore column when hiding results
mirrors that column is tidied when showing results
Diffstat (limited to 'src')
-rw-r--r--src/static/js/client/sidebar-search.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/static/js/client/sidebar-search.js b/src/static/js/client/sidebar-search.js
index 902f6d0c..7b01cb00 100644
--- a/src/static/js/client/sidebar-search.js
+++ b/src/static/js/client/sidebar-search.js
@@ -587,7 +587,6 @@ export function addPageListeners() {
     clearSidebarSearch();
     clearSidebarFilter();
     possiblyHideSearchSidebarColumn();
-    restoreSidebarSearchColumn();
   });
 
   forEachFilter((type, filterLink) => {
@@ -1387,6 +1386,8 @@ function hideSidebarSearchResults() {
 
   cssProp(info.endSearchRule, 'display', 'none');
   cssProp(info.endSearchLine, 'display', 'none');
+
+  restoreSidebarSearchColumn();
 }
 
 function focusFirstSidebarSearchResult() {