diff --git a/library/Icinga/Chart/Graph/BarGraph.php b/library/Icinga/Chart/Graph/BarGraph.php index 3d6a5c234..1225307ad 100644 --- a/library/Icinga/Chart/Graph/BarGraph.php +++ b/library/Icinga/Chart/Graph/BarGraph.php @@ -144,7 +144,7 @@ class BarGraph extends Styleable implements Drawable $this->tooltips[$x]->renderNoHtml($this->order, $data, $format) ); $bar->setAttribute( - 'title-rich', + 'data-title-rich', $this->tooltips[$x]->render($this->order, $data, $format) ); } diff --git a/public/js/icinga/events.js b/public/js/icinga/events.js index 6cae68f0c..e786a35da 100644 --- a/public/js/icinga/events.js +++ b/public/js/icinga/events.js @@ -116,7 +116,7 @@ $('[title]').each(function () { var $el = $(this); - $el.attr('title', $el.attr('title-rich') || $el.attr('title')); + $el.attr('title', $el.data('title-rich') || $el.attr('title')); }); $('svg rect.chart-data[title]', el).tipsy({ gravity: 'se', html: true }); $('.historycolorgrid a[title]', el).tipsy({ gravity: 's', offset: 2 });