diff options
| author | Deep Patel <dep@odoo.com> | 2018-06-20 18:20:54 +0530 |
|---|---|---|
| committer | Christophe Matthieu <chm@odoo.com> | 2018-08-06 16:17:48 +0200 |
| commit | c76c21d607271fdc5440ba3319e31586fcfd3d73 (patch) | |
| tree | ebf512b890cdb97260afbb09761d4ccb91aba0ba /addons/web_editor/static/src/js | |
| parent | 64a219bd0694c6e7f79692f8d1dfd2201f6125e1 (diff) | |
[FIX] mass_mailing: fixed multiple buttons transcoding issues (outlook hack fix)
Because of outlook hack node was not find next sibling of current element.
Due to this only first button is transcoded into inline css.
Diffstat (limited to 'addons/web_editor/static/src/js')
| -rw-r--r-- | addons/web_editor/static/src/js/editor/transcoder.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js index 175f920fa86..bdc801b3a4b 100644 --- a/addons/web_editor/static/src/js/editor/transcoder.js +++ b/addons/web_editor/static/src/js/editor/transcoder.js @@ -248,6 +248,10 @@ function applyOverDescendants(node, func) { func(node); applyOverDescendants(node, func); } + var $node = $(node); + if (node.nodeName === 'A' && $node.hasClass('btn') && !$node.children().length && $(node).parents('.o_outlook_hack').length) { + node = $(node).parents('.o_outlook_hack')[0]; + } node = node.nextSibling; } } |
