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() {
.catch(() => {});
}
const glTooltipDelay = localStorage.getItem('gl-tooltip-delay');
const delay = glTooltipDelay ? JSON.parse(glTooltipDelay) : 0;
// Initialize tooltips
$body.tooltip({
selector: '.has-tooltip, [data-toggle="tooltip"]',
trigger: 'hover',
boundary: 'viewport',
delay,
});
// 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