From 726a356045208ec4a224ea02d8046aa05cb6d610 Mon Sep 17 00:00:00 2001 From: David Monjoie Date: Thu, 9 Aug 2018 15:46:43 +0200 Subject: [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. --- addons/web/static/src/js/fields/basic_fields.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'addons/web/static/src/js/fields/basic_fields.js') 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 ? '' : ' %s'; + var template = this.attrs.nolabel ? '' : ' %s'; this.$el.empty().append(_.str.sprintf(template, this.value ? 'fa-star' : 'fa-star-o', tip, tip)); }, -- cgit v1.2.3