Display icon tooltips without delay

Original functionality was broken when changing the icon library.
This commit is contained in:
Matthias Jentsch 2015-04-16 18:30:49 +02:00
parent 0974b70e0e
commit 6898a4e0d5
2 changed files with 3 additions and 3 deletions

View File

@ -128,6 +128,7 @@ class HistoryColorGrid extends AbstractWidget {
'aria-label="' . $entry['caption'] . '" ' .
'title="' . $entry['caption'] . '" ' .
'href="' . $entry['url'] . '" ' .
'data-tooltip-delay="0"' .
'></a>';
} else {
return '<span ' .

View File

@ -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;