mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
replace linebreaks with <br/> in data section of tooltip.
This commit is contained in:
parent
18e0a60b9e
commit
9e1e7be574
@ -135,7 +135,7 @@ define([
|
|||||||
}
|
}
|
||||||
tooltip += '<i>' + moment(options.time).format('YYYY-MM-DD HH:mm:ss') + '</i><br/>';
|
tooltip += '<i>' + moment(options.time).format('YYYY-MM-DD HH:mm:ss') + '</i><br/>';
|
||||||
if (options.data) {
|
if (options.data) {
|
||||||
tooltip += options.data;
|
tooltip += options.data.replace(/\n/g, '<br/>');
|
||||||
}
|
}
|
||||||
tooltip += "</small>";
|
tooltip += "</small>";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user