[FIX] mail: open livechat link in the body message with target="_blank"

opw-666733
This commit is contained in:
Christophe Matthieu
2016-01-14 15:02:38 +01:00
parent c304e2ce95
commit aad21cd555
+1 -1
View File
@@ -101,7 +101,7 @@ function add_link (node, transform_children) {
if (node.nodeType === 3) { // text node
return node.data.replace(url_regexp, function (url) {
var href = (!/^(f|ht)tps?:\/\//i.test(url)) ? "http://" + url : url;
return '<a href="' + href + '">' + url + '</a>';
return '<a target="_blank" href="' + href + '">' + url + '</a>';
});
}
if (node.tagName === "A") return node.outerHTML;