diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-15 11:52:10 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-15 11:52:10 +0100 |
| commit | 3b959c313d49889c8c81f37545d9028c63904484 (patch) | |
| tree | f706dd0155ad7fac1045b4d31a9adb3bb4d90309 /addons/mass_mailing/static/src/js/mass_mailing_editor.js | |
| parent | 93da579623574394b6261e2fbb62d35fb18954eb (diff) | |
| parent | a277b585072c63aab1daf9573914aa722627ae0e (diff) | |
[MERGE] forward port branch saas-11.1 up to a277b585072
Diffstat (limited to 'addons/mass_mailing/static/src/js/mass_mailing_editor.js')
| -rw-r--r-- | addons/mass_mailing/static/src/js/mass_mailing_editor.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/mass_mailing/static/src/js/mass_mailing_editor.js b/addons/mass_mailing/static/src/js/mass_mailing_editor.js index 8ebec45da2b..c7070e61a31 100644 --- a/addons/mass_mailing/static/src/js/mass_mailing_editor.js +++ b/addons/mass_mailing/static/src/js/mass_mailing_editor.js @@ -89,11 +89,11 @@ options.registry.sizing_x = options.Class.extend({ }); options.registry.table_item = options.Class.extend({ - onClone: function () { + onClone: function (options) { this._super.apply(this, arguments); // If we cloned a td or th element... - if (this.$target.is("td, th")) { + if (options.isCurrent && this.$target.is("td, th")) { // ... and that the td or th element was alone on its row ... if (this.$target.siblings().length === 1) { var $tr = this.$target.parent(); |
