summaryrefslogtreecommitdiff
path: root/addons/mass_mailing/static/src/js/mass_mailing_editor.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-14 18:26:57 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-14 18:26:57 +0100
commit72508cc241301a564a8c2550a550bb6f3d0b3cdb (patch)
tree52235e3ee5a6397eff7fdf72d57206d61848b5b2 /addons/mass_mailing/static/src/js/mass_mailing_editor.js
parentb4bda28f0daf6188a8575877ea9a2f68497686b7 (diff)
parent779275594654ca3a04c17b019b9fb932a630d8ae (diff)
[MERGE] forward port branch saas-16 up to 77927559465
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.js4
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 c40f31c258f..be8862f7d36 100644
--- a/addons/mass_mailing/static/src/js/mass_mailing_editor.js
+++ b/addons/mass_mailing/static/src/js/mass_mailing_editor.js
@@ -85,11 +85,11 @@ options.registry["width-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();