Make the delay for tooltips configurable
This commit is contained in:
parent
a5a73ce326
commit
b9bba76b4e
@ -299,11 +299,13 @@ define([
|
|||||||
var MutationObserver = window.MutationObserver;
|
var MutationObserver = window.MutationObserver;
|
||||||
var addTippy = function (el) {
|
var addTippy = function (el) {
|
||||||
if (el.nodeName === 'IFRAME') { return; }
|
if (el.nodeName === 'IFRAME') { return; }
|
||||||
|
var delay = typeof(AppConfig.tooltipDelay) === "number" ? AppConfig.tooltipDelay : 500;
|
||||||
|
if (el.nodeName === 'A') { d.push(el); }
|
||||||
Tippy(el, {
|
Tippy(el, {
|
||||||
position: 'bottom',
|
position: 'bottom',
|
||||||
distance: 0,
|
distance: 0,
|
||||||
performance: true,
|
performance: true,
|
||||||
delay: [500, 0]
|
delay: [delay, 0]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
var $body = $('body');
|
var $body = $('body');
|
||||||
|
|||||||
@ -1779,6 +1779,7 @@ define([
|
|||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
updateLocalVersion();
|
updateLocalVersion();
|
||||||
|
common.addTooltips();
|
||||||
f(void 0, env);
|
f(void 0, env);
|
||||||
if (typeof(window.onhashchange) === 'function') { window.onhashchange(); }
|
if (typeof(window.onhashchange) === 'function') { window.onhashchange(); }
|
||||||
}
|
}
|
||||||
@ -1797,7 +1798,6 @@ define([
|
|||||||
store = common.store = env.store = storeObj;
|
store = common.store = env.store = storeObj;
|
||||||
|
|
||||||
common.addDirectMessageHandler(common);
|
common.addDirectMessageHandler(common);
|
||||||
common.addTooltips();
|
|
||||||
|
|
||||||
var proxy = getProxy();
|
var proxy = getProxy();
|
||||||
var network = getNetwork();
|
var network = getNetwork();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user