[IMP]Bounce ob image
bzr revid: vja@tinyerp.com-20130228054910-3s7mrp39y0kmkfpy
This commit is contained in:
parent
0e2dddec98
commit
dff2dd0196
|
@ -4985,6 +4985,13 @@ instance.web.form.FieldBinaryImage = instance.web.form.FieldBinary.extend({
|
||||||
url = this.placeholder;
|
url = this.placeholder;
|
||||||
}
|
}
|
||||||
var $img = $(QWeb.render("FieldBinaryImage-img", { widget: this, url: url }));
|
var $img = $(QWeb.render("FieldBinaryImage-img", { widget: this, url: url }));
|
||||||
|
$($img).click(function(e) {
|
||||||
|
if(self.view.get("actual_mode") == "view") {
|
||||||
|
var $button = $(".oe_form_button_edit");
|
||||||
|
$button.openerpBounce();
|
||||||
|
e.stopPropagation();
|
||||||
|
}
|
||||||
|
});
|
||||||
this.$el.find('> img').remove();
|
this.$el.find('> img').remove();
|
||||||
this.$el.prepend($img);
|
this.$el.prepend($img);
|
||||||
$img.load(function() {
|
$img.load(function() {
|
||||||
|
|
Loading…
Reference in New Issue