Переглянути джерело

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

Jan Gaedicke 12 роки тому
батько
коміт
9e1e7be574
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      src/app/services/annotationsSrv.js

+ 1 - 1
src/app/services/annotationsSrv.js

@@ -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>";