[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:
chm@openerp.com
2014-04-14 10:26:17 +02:00
parent ea167ad7ab
commit 8da0820a88
@@ -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) {