summaryrefslogtreecommitdiff
path: root/addons/web_editor/static/src/js
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2016-09-15 18:55:01 +0200
committerChristophe Simonis <chs@odoo.com>2016-09-15 18:55:01 +0200
commitf8a601cad7becde53e7dc4635cb993a89a174ebc (patch)
tree5f9ecf1240c0b6bc4795e1ed2da2a9fb79b44f65 /addons/web_editor/static/src/js
parentf83b5a8e560cd70493dd5c135d9538e0c6a83083 (diff)
parente634a52cace081edfce324f14228ddb419af0a31 (diff)
[MERGE] forward port branch saas-10 up to e634a52
Diffstat (limited to 'addons/web_editor/static/src/js')
-rw-r--r--addons/web_editor/static/src/js/snippets.editor.js5
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 cd03cb70f6a..51cc5a31615 100644
--- a/addons/web_editor/static/src/js/snippets.editor.js
+++ b/addons/web_editor/static/src/js/snippets.editor.js
@@ -356,6 +356,9 @@ var BuildingBlock = Widget.extend({
});
self.make_snippet_draggable(self.$snippets);
+
+ this.show_blocks();
+ this.$el.on("snippet-dropped snippet-removed", this.show_blocks.bind(this));
},
cover_target: function ($el, $target) {
@@ -1074,6 +1077,8 @@ var Editor = Class.extend({
$(".note-control-selection").hide();
$('.o_table_handler').remove();
+ this.buildingBlock.$el.trigger("snippet-removed");
+
return false;
},