Skip to content

Commit

Permalink
Display icon tooltips without delay
Browse files Browse the repository at this point in the history
Original functionality was broken when changing the icon library.
  • Loading branch information
majentsch committed Apr 16, 2015
1 parent 0974b70 commit 6898a4e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 2 additions & 1 deletion library/Icinga/Web/Widget/Chart/HistoryColorGrid.php
Expand Up @@ -127,7 +127,8 @@ private function renderDay($day)
. ' opacity: ' . $this->opacity . ';" ' .
'aria-label="' . $entry['caption'] . '" ' .
'title="' . $entry['caption'] . '" ' .
'href="' . $entry['url'] . '"' .
'href="' . $entry['url'] . '" ' .
'data-tooltip-delay="0"' .
'></a>';
} else {
return '<span ' .
Expand Down
3 changes: 1 addition & 2 deletions public/js/icinga/behavior/tooltip.js
Expand Up @@ -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;
Expand Down

0 comments on commit 6898a4e

Please sign in to comment.