Commit 6e106f66 authored by Fatih Acet's avatar Fatih Acet

Merge branch 'nfriend-add-delay-support-to-tooltip-js' into 'master'

Add delay customization to `app/assets/javascripts/vue_shared/directives/tooltip.js`

See merge request gitlab-org/gitlab-ce!30524
parents cd511759 9c55031f
......@@ -3,8 +3,12 @@ import '~/commons/bootstrap';
export default {
bind(el) {
const glTooltipDelay = localStorage.getItem('gl-tooltip-delay');
const delay = glTooltipDelay ? JSON.parse(glTooltipDelay) : 0;
$(el).tooltip({
trigger: 'hover',
delay,
});
},
......
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