[FIX] Empty binary fields does not hide filename placeholder
lp bug: https://launchpad.net/bugs/1054111 fixed bzr revid: fme@openerp.com-20130107161807-fvzdgayqhf8hx92q
This commit is contained in:
@@ -4944,7 +4944,7 @@ instance.web.form.FieldBinaryFile = instance.web.form.FieldBinary.extend({
|
||||
}
|
||||
this.$el.find('input').eq(0).val(show_value);
|
||||
} else {
|
||||
this.$el.find('a').show(!!this.get('value'));
|
||||
this.$el.find('a').toggle(!!this.get('value'));
|
||||
if (this.get('value')) {
|
||||
var show_value = _t("Download")
|
||||
if (this.view)
|
||||
|
||||
Reference in New Issue
Block a user