[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
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user