summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/editor/transcoder.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-05-14 15:10:09 +0200
committerChristophe Simonis <chs@odoo.com>2018-05-14 15:10:09 +0200
commitb44c34865bbe733a76f30375e09957d10bce2c27 (patch)
tree46715bbdfe886a3bab0538baba07ca05737508fd /addons/web_editor/static/src/js/editor/transcoder.js
parent1265839a07d6740022c16d4eddf8c17a3c7180df (diff)
[FIX] web_editor: correct js code.
Oversight of previous forward-port
Diffstat (limited to 'addons/web_editor/static/src/js/editor/transcoder.js')
-rw-r--r--addons/web_editor/static/src/js/editor/transcoder.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/addons/web_editor/static/src/js/editor/transcoder.js b/addons/web_editor/static/src/js/editor/transcoder.js
index 9ca19f01ac3..99985a1c383 100644
--- a/addons/web_editor/static/src/js/editor/transcoder.js
+++ b/addons/web_editor/static/src/js/editor/transcoder.js
@@ -272,12 +272,12 @@ function classToStyle($editable) {
$target.attr('style', style);
}
// Apple Mail
- if (this.nodeName === 'TD' && !this.childNodes.length) {
- this.innerHTML = '&nbsp;';
+ if (node.nodeName === 'TD' && !node.childNodes.length) {
+ node.innerHTML = '&nbsp;';
}
// Outlook
- if (this.nodeName === 'A' && $target.hasClass('btn') && !$target.children().length) {
+ if (node.nodeName === 'A' && $target.hasClass('btn') && !$target.children().length) {
var $hack = $('<table class="o_outlook_hack"><tr><td></td></tr></table>');
$hack.find('td')
.attr('height', $target.outerHeight())