summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js/snippets.editor.js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2018-02-14 16:34:13 +0100
committerChristophe Simonis <chs@odoo.com>2018-02-14 16:34:13 +0100
commitd24bdbde81be971be27e39ef7a2e1a1b2371074e (patch)
tree5c1cc64cf0fadcf1879ef10f233a3793c47b6bfb /addons/web_editor/static/src/js/snippets.editor.js
parent33e7c8d60c58c98d2f679b66abae5af7ef224726 (diff)
parent9d0de6111471860bc541058be351df4abb8ea167 (diff)
[MERGE] forward port branch saas-14 up to 9d0de611147
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js
index e5d184117f4..f68bf8756bb 100644
--- a/addons/web_editor/static/src/js/snippets.editor.js
+++ b/addons/web_editor/static/src/js/snippets.editor.js
@@ -1010,7 +1010,9 @@ data.Editor = Class.extend({
this.$target.after($clone);
this.buildingBlock.call_for_all_snippets($clone, function (editor, $snippet) {
for (var i in editor.styles) {
- editor.styles[i].on_clone($snippet);
+ editor.styles[i].on_clone($snippet, {
+ isCurrent: ($snippet.is($clone)),
+ });
}
});
return false;