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:
Torkel Ödegaard
2014-04-01 09:18:28 -04:00
+1 -1
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>";