Commit 9c55031f authored by Nathan Friend's avatar Nathan Friend

Add delay customization to tooltip.js

This MR allows the delay of tooltips instantiated using
tooltip.js to be customized through localStorage.
parent ebcf92c5
......@@ -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