Skip to content
Snippets Groups Projects
Commit cd3b6026 authored by Jérome Maes's avatar Jérome Maes
Browse files

[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.
parent e97b40ba
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment