« 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/client3.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/static/client3.js')
-rw-r--r--src/static/client3.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/static/client3.js b/src/static/client3.js
index 866b9ba2..390d020e 100644
--- a/src/static/client3.js
+++ b/src/static/client3.js
@@ -754,6 +754,8 @@ function hideCurrentlyShownTooltip() {
   // Never hide the tooltip if it's focused.
   if (currentlyShownTooltipHasFocus()) return false;
 
+  state.currentlyActiveHoverable.classList.remove('has-visible-tooltip');
+
   state.currentlyShownTooltip = null;
   state.currentlyActiveHoverable = null;
 
@@ -774,6 +776,8 @@ function showTooltipFromHoverable(hoverable) {
 
   if (!hideCurrentlyShownTooltip()) return false;
 
+  hoverable.classList.add('has-visible-tooltip');
+
   state.currentlyShownTooltip = tooltip;
   state.currentlyActiveHoverable = hoverable;