« get me outta code hell

content, css, client: search magnifying glass & hover cues - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-06-16 15:20:15 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-18 22:56:13 -0300
commit1820a0ba6643b34a36ab1b29ff6ef33f0dc5a655 (patch)
treec8736e93791c61256620ed34a58fea5ab2ed8cbe /src/static/js
parent722195a80315bfd18e183108ad249e5672197a70 (diff)
content, css, client: search magnifying glass & hover cues
Diffstat (limited to 'src/static/js')
-rw-r--r--src/static/js/client.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/static/js/client.js b/src/static/js/client.js
index 935a9d87..3a4af8c1 100644
--- a/src/static/js/client.js
+++ b/src/static/js/client.js
@@ -3831,6 +3831,7 @@ const sidebarSearchInfo = initInfo('sidebarSearchInfo', {
 
   searchSidebarColumn: null,
   searchBox: null,
+  searchLabel: null,
   searchInput: null,
 
   progressRule: null,
@@ -3919,6 +3920,9 @@ function getSidebarSearchReferences() {
     return;
   }
 
+  info.searchLabel =
+    info.searchBox.querySelector('.wiki-search-label');
+
   info.searchInput =
     info.searchBox.querySelector('.wiki-search-input');
 
@@ -4360,6 +4364,7 @@ function showSidebarSearchFailed() {
   cssProp(info.failedRule, 'display', null);
   cssProp(info.failedContainer, 'display', null);
 
+  info.searchLabel.classList.add('disabled');
   info.searchInput.disabled = true;
 
   if (state.stoppedTypingTimeout) {