replace linebreaks with <br/> in data section of tooltip.

This commit is contained in:
Jan Gaedicke 2014-04-01 15:14:15 +02:00
parent 18e0a60b9e
commit 9e1e7be574

View File

@ -135,7 +135,7 @@ define([
}
tooltip += '<i>' + moment(options.time).format('YYYY-MM-DD HH:mm:ss') + '</i><br/>';
if (options.data) {
tooltip += options.data;
tooltip += options.data.replace(/\n/g, '<br/>');
}
tooltip += "</small>";