[FIX] web_editor: correct js code.

Oversight of previous forward-port
This commit is contained in:
Christophe Simonis
2018-05-14 15:10:09 +02:00
parent 1265839a07
commit b44c34865b
@@ -272,12 +272,12 @@ function classToStyle($editable) {
$target.attr('style', style);
}
// Apple Mail
if (this.nodeName === 'TD' && !this.childNodes.length) {
this.innerHTML = ' ';
if (node.nodeName === 'TD' && !node.childNodes.length) {
node.innerHTML = ' ';
}
// 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())