Commit 36e73eff authored by Nathan Friend's avatar Nathan Friend

Allow (Haml) tooltip delay customization via localStorage

parent be83c8ea
...@@ -119,11 +119,15 @@ function deferredInitialisation() { ...@@ -119,11 +119,15 @@ function deferredInitialisation() {
.catch(() => {}); .catch(() => {});
} }
const glTooltipDelay = localStorage.getItem('gl-tooltip-delay');
const delay = glTooltipDelay ? JSON.parse(glTooltipDelay) : 0;
// Initialize tooltips // Initialize tooltips
$body.tooltip({ $body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]', selector: '.has-tooltip, [data-toggle="tooltip"]',
trigger: 'hover', trigger: 'hover',
boundary: 'viewport', boundary: 'viewport',
delay,
}); });
// Initialize popovers // Initialize popovers
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment