diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-14 16:04:23 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-14 16:04:23 +0100 |
| commit | 9d0de6111471860bc541058be351df4abb8ea167 (patch) | |
| tree | dda34b2c75ae88141fde4c210a9c2081ab5bfe44 /addons/web_editor/static/src/js/snippets.editor.js | |
| parent | 851c29ce0e7f2c53f5ac256f7a232af4c4ad001b (diff) | |
| parent | 73c2ac451af1afec38d06d102063c81e704ff22b (diff) | |
[MERGE] forward port branch 10.0 up to 73c2ac451af
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
| -rw-r--r-- | addons/web_editor/static/src/js/snippets.editor.js | 4 |
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; |
