[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.
This commit is contained in:
jem-odoo
2019-02-06 09:55:13 +00:00
parent e97b40bae6
commit cd3b6026e9
@@ -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();