diff options
| author | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-06-27 17:29:22 +0200 |
|---|---|---|
| committer | niv-openerp <nicolas.vanhoren@openerp.com> | 2012-06-27 17:29:22 +0200 |
| commit | ec92d42e321d07003bd530f6afd165630b769b35 (patch) | |
| tree | 9070bccc7c2544b626bce1f831e9e472b006248d /addons/web/static/src/js | |
| parent | 877f6c4fab0cd730238bbc3fd446492146e966d6 (diff) | |
[FIX] email and url display 'false'
bzr revid: nicolas.vanhoren@openerp.com-20120627152922-x1wp96wcu0zbdqyk
Diffstat (limited to 'addons/web/static/src/js')
| -rw-r--r-- | addons/web/static/src/js/view_form.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/web/static/src/js/view_form.js b/addons/web/static/src/js/view_form.js index 5348550a7e0..1941e48affd 100644 --- a/addons/web/static/src/js/view_form.js +++ b/addons/web/static/src/js/view_form.js @@ -2003,7 +2003,7 @@ instance.web.form.FieldEmail = instance.web.form.FieldChar.extend({ } else { this.$element.find('a') .attr('href', 'mailto:' + this.get('value')) - .text(this.get('value')); + .text(this.get('value') || ''); } }, on_button_clicked: function() { @@ -2032,7 +2032,7 @@ instance.web.form.FieldUrl = instance.web.form.FieldChar.extend({ if (!s) { tmp = "http://" + this.get('value'); } - this.$element.find('a').attr('href', tmp).text(tmp); + this.$element.find('a').attr('href', tmp).text(this.get('value') ? tmp : ''); } }, on_button_clicked: function() { |
