[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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user