From cd3b6026e9af59fbeaf544b480d825d674e30336 Mon Sep 17 00:00:00 2001 From: jem-odoo Date: Thu, 31 Jan 2019 13:13:03 +0000 Subject: [PATCH] [FIX] website_rating: display label when rating This commit fix the display of a label when the user add a review; when selecting desired stars, the label corresponding to the star is displayed in a badge. The bug probably comes from the update to bootstrap 4. --- addons/website_rating/static/src/js/website_mail.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/website_rating/static/src/js/website_mail.js b/addons/website_rating/static/src/js/website_mail.js index 2848bc79d30..ef6c06adc3e 100644 --- a/addons/website_rating/static/src/js/website_mail.js +++ b/addons/website_rating/static/src/js/website_mail.js @@ -79,8 +79,7 @@ odoo.define('website_rating.thread', function(require) { if(decimal){ this.$('.stars').find("i:eq("+(index)+")").removeClass('fa-star-o fa-star fa-star-half-o').addClass('fa-star-half-o'); } - - this.$('.rate_text .label').text(this.labels[index]); + this.$('.rate_text .badge').text(this.labels[index]); }, _onMouseleaveStar: function(e){ this.$('.rate_text').hide();