[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:
parent
d2a863998e
commit
5f7a8b66e0
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue