summaryrefslogtreecommitdiff
path: root/addons/website/static/src
diff options
context:
space:
mode:
authorchm@openerp.com <>2014-04-14 10:26:17 +0200
committerchm@openerp.com <>2014-04-14 10:26:17 +0200
commit8da0820a8800653a93229bd27e528ef073bef0d5 (patch)
treedd125eb8cadbc814bac69357ec60011a6e78f0cb /addons/website/static/src
parentea167ad7ab9408d435baaf033900c58dbd2acfc7 (diff)
[FIX] website: media editor: when the user save the picture, the dialog box re-open automatically. Do not re-active snippet when we save a field image
bzr revid: chm@openerp.com-20140414082617-svxpb6kuqfhjm8oa
Diffstat (limited to 'addons/website/static/src')
-rw-r--r--addons/website/static/src/js/website.snippets.editor.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website/static/src/js/website.snippets.editor.js b/addons/website/static/src/js/website.snippets.editor.js
index d8eee3cbec5..f8731bf5055 100644
--- a/addons/website/static/src/js/website.snippets.editor.js
+++ b/addons/website/static/src/js/website.snippets.editor.js
@@ -1498,7 +1498,9 @@
$(document.body).on("media-saved", self, function (event, prev , item) {
self.editor.onBlur();
self.BuildingBlock.make_active(false);
- self.BuildingBlock.make_active($(item));
+ if (self.$target.parent().data("oe-field") !== "image") {
+ self.BuildingBlock.make_active($(item));
+ }
});
this.$el.find(".edition").click(function (event) {