Commit bae43725 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'nfriend-make-haml-tooltip-delay-user-configurable' into 'master'

Allow vanilla JS tooltip delay to be customized through localStorage

See merge request gitlab-org/gitlab-ce!30196
parents 56af0bfd 36e73eff
......@@ -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