mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
Do not use an invalid HTML attributes for rich titles
This commit is contained in:
parent
e5be8d47ef
commit
eeed030bb5
@ -144,7 +144,7 @@ class BarGraph extends Styleable implements Drawable
|
|||||||
$this->tooltips[$x]->renderNoHtml($this->order, $data, $format)
|
$this->tooltips[$x]->renderNoHtml($this->order, $data, $format)
|
||||||
);
|
);
|
||||||
$bar->setAttribute(
|
$bar->setAttribute(
|
||||||
'title-rich',
|
'data-title-rich',
|
||||||
$this->tooltips[$x]->render($this->order, $data, $format)
|
$this->tooltips[$x]->render($this->order, $data, $format)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
@ -116,7 +116,7 @@
|
|||||||
|
|
||||||
$('[title]').each(function () {
|
$('[title]').each(function () {
|
||||||
var $el = $(this);
|
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 });
|
$('svg rect.chart-data[title]', el).tipsy({ gravity: 'se', html: true });
|
||||||
$('.historycolorgrid a[title]', el).tipsy({ gravity: 's', offset: 2 });
|
$('.historycolorgrid a[title]', el).tipsy({ gravity: 's', offset: 2 });
|
||||||
|
Loading…
x
Reference in New Issue
Block a user