Do not use an invalid HTML attributes for rich titles

This commit is contained in:
Matthias Jentsch 2014-09-04 13:32:30 +02:00
parent e5be8d47ef
commit eeed030bb5
2 changed files with 2 additions and 2 deletions

View File

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

View File

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