Merge pull request #268 from ImmobilienScout24/feature/linebreak_in_annotations_tooltip
replace linebreaks with <br/> in data section of tooltip.
This commit is contained in:
@@ -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>";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user