diff options
| author | Christophe Simonis <chs@odoo.com> | 2018-02-14 16:34:13 +0100 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2018-02-14 16:34:13 +0100 |
| commit | d24bdbde81be971be27e39ef7a2e1a1b2371074e (patch) | |
| tree | 5c1cc64cf0fadcf1879ef10f233a3793c47b6bfb /addons/web_editor/static/src/js/snippets.editor.js | |
| parent | 33e7c8d60c58c98d2f679b66abae5af7ef224726 (diff) | |
| parent | 9d0de6111471860bc541058be351df4abb8ea167 (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.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; |
