diff options
| author | Christophe Simonis <chs@odoo.com> | 2016-09-16 10:34:39 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2016-09-16 10:34:39 +0200 |
| commit | 10cde43fd4c0f85e86c21a15dcd3f39e10c87d96 (patch) | |
| tree | 3b43edb7855ba1602469fe2d75e9cd81900c19b1 /addons/web_editor/static/src/js/snippets.editor.js | |
| parent | a4f9c25cf0b16b62d914c6ed3ba80b04d4a7aadc (diff) | |
| parent | 4c2b5360319c0557b0627d3f3296bc2c20b8e877 (diff) | |
[MERGE] forward port branch saas-11 up to 4c2b536
Diffstat (limited to 'addons/web_editor/static/src/js/snippets.editor.js')
| -rw-r--r-- | addons/web_editor/static/src/js/snippets.editor.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/addons/web_editor/static/src/js/snippets.editor.js b/addons/web_editor/static/src/js/snippets.editor.js index 66789ef635e..5a67b11707d 100644 --- a/addons/web_editor/static/src/js/snippets.editor.js +++ b/addons/web_editor/static/src/js/snippets.editor.js @@ -321,6 +321,9 @@ data.Class = Widget.extend({ self.make_snippet_draggable(self.$snippets); this.associate_snippet_names(this.$snippets); + + this.show_blocks(); + this.$el.on("snippet-dropped snippet-removed", this.show_blocks.bind(this)); }, associate_snippet_names: function ($snippets) { @@ -1087,6 +1090,8 @@ data.Editor = Class.extend({ $(".note-control-selection").hide(); $('.o_table_handler').remove(); + this.buildingBlock.$el.trigger("snippet-removed"); + return false; }, |
