mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-29 16:54:04 +02:00
Display icon tooltips without delay
Original functionality was broken when changing the icon library.
This commit is contained in:
parent
0974b70e0e
commit
6898a4e0d5
@ -127,7 +127,8 @@ class HistoryColorGrid extends AbstractWidget {
|
|||||||
. ' opacity: ' . $this->opacity . ';" ' .
|
. ' opacity: ' . $this->opacity . ';" ' .
|
||||||
'aria-label="' . $entry['caption'] . '" ' .
|
'aria-label="' . $entry['caption'] . '" ' .
|
||||||
'title="' . $entry['caption'] . '" ' .
|
'title="' . $entry['caption'] . '" ' .
|
||||||
'href="' . $entry['url'] . '"' .
|
'href="' . $entry['url'] . '" ' .
|
||||||
|
'data-tooltip-delay="0"' .
|
||||||
'></a>';
|
'></a>';
|
||||||
} else {
|
} else {
|
||||||
return '<span ' .
|
return '<span ' .
|
||||||
|
@ -28,8 +28,7 @@
|
|||||||
$el.attr('title', $el.data('title-rich') || $el.attr('title'));
|
$el.attr('title', $el.data('title-rich') || $el.attr('title'));
|
||||||
});
|
});
|
||||||
$('svg .chart-data', el).tipsy({ gravity: 'se', html: true });
|
$('svg .chart-data', el).tipsy({ gravity: 'se', html: true });
|
||||||
$('.historycolorgrid a[title]', el).tipsy({ gravity: 's', offset: 2 });
|
$('i[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2 });
|
||||||
$('img.icon[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2 });
|
|
||||||
$('[title]', el).each(function (i, el) {
|
$('[title]', el).each(function (i, el) {
|
||||||
var $el = $(el);
|
var $el = $(el);
|
||||||
var delay = 500;
|
var delay = 500;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user