diff options
| author | David Monjoie <dmo@odoo.com> | 2018-08-09 15:46:43 +0200 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2018-08-16 11:19:26 +0200 |
| commit | 726a356045208ec4a224ea02d8046aa05cb6d610 (patch) | |
| tree | fa783f9c8d0bc0ac1ca4625ec5f26bcbcded45a7 /addons/web/static/src/js/fields/basic_fields.js | |
| parent | d2e2d05f08ba16d07fbb8a5a5eebde5cb43b6ab4 (diff) | |
[IMP] web: add/remove from favorite outside of i tag
When paced inside the i tag, the text used to inherit from the
style of the star, which means the text was yellow when starred.
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
| -rw-r--r-- | addons/web/static/src/js/fields/basic_fields.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/fields/basic_fields.js b/addons/web/static/src/js/fields/basic_fields.js index dfcbbc71a80..9bf432c97fc 100644 --- a/addons/web/static/src/js/fields/basic_fields.js +++ b/addons/web/static/src/js/fields/basic_fields.js @@ -1890,7 +1890,7 @@ var FavoriteWidget = AbstractField.extend({ */ _render: function () { var tip = this.value ? _t('Remove from Favorites') : _t('Add to Favorites'); - var template = this.attrs.nolabel ? '<a href="#"><i class="fa %s" title="%s" aria-label="%s" role="img"></i></a>' : '<a href="#"><i class="fa %s" role="img" aria-label="%s"> %s</i></a>'; + var template = this.attrs.nolabel ? '<a href="#"><i class="fa %s" title="%s" aria-label="%s" role="img"></i></a>' : '<a href="#"><i class="fa %s" role="img" aria-label="%s"></i> %s</a>'; this.$el.empty().append(_.str.sprintf(template, this.value ? 'fa-star' : 'fa-star-o', tip, tip)); }, |
