Commit 7248358a by Torkel Ödegaard

Merge pull request #268 from ImmobilienScout24/feature/linebreak_in_annotations_tooltip

replace linebreaks with <br/> in data section of tooltip.
parents 18e0a60b 9e1e7be5
...@@ -135,7 +135,7 @@ define([ ...@@ -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>";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment