summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2016-08-31 15:23:56 +0200
committerqsm-odoo <qsm@odoo.com>2016-08-31 15:28:15 +0200
commit404ed0f7884ff724706e6d7f50d35482e92ce60a (patch)
treea5b9aa5aa864e2883853864d4e6682d9c047e45e /addons/web_editor/static/src
parenta10fe123e73ade4ec42daa79f75a3f1da750e8fe (diff)
[FIX] web_editor: do not propagate event communication between
background and color snippet options The background and color snippet options communicate so that if a color is set while a background is already set, the backgrond is removed. The problem is that the event propagation was not stop so if a snippet had a background and one of its child set a color, the background was removed.
Diffstat (limited to 'addons/web_editor/static/src')
-rw-r--r--addons/web_editor/static/src/js/snippets.options.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/snippets.options.js b/addons/web_editor/static/src/js/snippets.options.js
index a6cbb7bb002..996daee8753 100644
--- a/addons/web_editor/static/src/js/snippets.options.js
+++ b/addons/web_editor/static/src/js/snippets.options.js
@@ -318,6 +318,7 @@ odoo.define('web_editor.snippets.options', function (require) {
var res = this._super.apply(this, arguments);
this.$target.off(".background-option")
.on("background-color-event.background-option", (function (e, type) {
+ e.stopPropagation();
this.$el.find("li:first > a").trigger(type);
}).bind(this));
return res;