summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorChristophe Matthieu <chm@odoo.com>2015-06-17 19:23:17 +0200
committerChristophe Matthieu <chm@odoo.com>2015-06-17 19:23:17 +0200
commit1b7c49bf1e0843c1d11c856ef5474ebfc2c261d1 (patch)
tree63929442a6362802aa1cc896208dbf7f2d377ffb /addons
parent4ee19ac990700dc5f58078beff341690749cfc94 (diff)
[FIX] website: trigger on change to save when drag and drop and change snippet options
Diffstat (limited to 'addons')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js
index 31813d42b9a..8eacef3e84e 100644
--- a/addons/website/static/src/js/website.snippets.editor.js
+++ b/addons/website/static/src/js/website.snippets.editor.js
@@ -638,6 +638,7 @@
}
});
}
+ $target.closest(".o_editable").trigger("content_changed");
// end
self.make_active($target);
@@ -1059,7 +1060,7 @@
},
background: function(type, value, $li) {
if (value && value.length) {
- this.$bg.attr("style", 'background-image: url(' + value + ')' + this.$bg.attr("style").replace(/background-image:[^;]+/, '') );
+ this.$bg.attr("style", 'background-image: url(' + value + ')' + (this.$bg.attr("style") || '').replace(/background-image:[^;]+/, '') );
this.$bg.addClass("oe_img_bg");
} else {
this.$bg.css("background-image", "");
@@ -1451,6 +1452,7 @@
self.BuildingBlock.editor_busy = false;
},0);
self.$target.removeClass("resize_editor_busy");
+ self.$target.closest(".o_editable").trigger("content_changed");
};
$body.mousemove(body_mousemove);
$body.mouseup(body_mouseup);
@@ -1459,6 +1461,7 @@
self.$target.css("height", "");
self.$target.css("overflow", "");
self.BuildingBlock.cover_target(self.$overlay, self.$target);
+ self.$target.closest(".o_editable").trigger("content_changed");
return false;
});
},