diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/main.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/assets/javascripts/main.js b/app/assets/javascripts/main.js index 9f30a989295..2d32e6a7fbb 100644 --- a/app/assets/javascripts/main.js +++ b/app/assets/javascripts/main.js @@ -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 |