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 . ';" ' .
|
||||
'aria-label="' . $entry['caption'] . '" ' .
|
||||
'title="' . $entry['caption'] . '" ' .
|
||||
'href="' . $entry['url'] . '"' .
|
||||
'href="' . $entry['url'] . '" ' .
|
||||
'data-tooltip-delay="0"' .
|
||||
'></a>';
|
||||
} else {
|
||||
return '<span ' .
|
||||
|
|
|
@ -28,8 +28,7 @@
|
|||
$el.attr('title', $el.data('title-rich') || $el.attr('title'));
|
||||
});
|
||||
$('svg .chart-data', el).tipsy({ gravity: 'se', html: true });
|
||||
$('.historycolorgrid a[title]', el).tipsy({ gravity: 's', offset: 2 });
|
||||
$('img.icon[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2 });
|
||||
$('i[title]', el).tipsy({ gravity: $.fn.tipsy.autoNS, offset: 2 });
|
||||
$('[title]', el).each(function (i, el) {
|
||||
var $el = $(el);
|
||||
var delay = 500;
|
||||
|
|
Loading…
Reference in New Issue