diff options
| author | Christophe Matthieu <chm@odoo.com> | 2016-01-14 15:02:27 +0100 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2016-01-14 15:02:38 +0100 |
| commit | aad21cd5554ea310dd93bdadecaaf709c730b38e (patch) | |
| tree | 48756767e1f5bd5a5246e6c5dae7155c51659ad8 | |
| parent | c304e2ce9516498df391a97c922af34baa4a6609 (diff) | |
[FIX] mail: open livechat link in the body message with target="_blank"
opw-666733
| -rw-r--r-- | addons/mail/static/src/js/chat_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/mail/static/src/js/chat_manager.js b/addons/mail/static/src/js/chat_manager.js index 09a662d2064..714e38fa157 100644 --- a/addons/mail/static/src/js/chat_manager.js +++ b/addons/mail/static/src/js/chat_manager.js @@ -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; |
