[MERGE] forward port of branch 7.0 up to f1b9b30
This commit is contained in:
commit
d519daca1d
|
@ -5814,6 +5814,7 @@ instance.web.form.FieldBinaryImage = instance.web.form.FieldBinary.extend({
|
||||||
$img.css("max-height", "" + self.options.size[1] + "px");
|
$img.css("max-height", "" + self.options.size[1] + "px");
|
||||||
});
|
});
|
||||||
$img.on('error', function() {
|
$img.on('error', function() {
|
||||||
|
self.on_clear();
|
||||||
$img.attr('src', self.placeholder);
|
$img.attr('src', self.placeholder);
|
||||||
instance.webclient.notification.warn(_t("Image"), _t("Could not display the selected image."));
|
instance.webclient.notification.warn(_t("Image"), _t("Could not display the selected image."));
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue