Skip to content

Commit 68cdac5

Browse files
authored
Merge pull request #163 from djbuch/patch-1
Update list-comments.js
2 parents ee9a2d9 + fd4f409 commit 68cdac5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

views/js/list-comments.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ jQuery(document).ready(function () {
3939
const nextCount = totalPages + 1;
4040
const gapText = '…';
4141

42-
$('.grade-stars').rating();
42+
$('#product-comments-list .grade-stars').rating();
43+
$('.product-comments-additional-info .grade-stars').rating();
4344

4445
prestashop.on('updatedProduct', function() {
4546
$('.product-comments-additional-info .grade-stars').rating();
4647
})
4748

4849
document.addEventListener('updateRating', function() {
49-
$('.grade-stars').rating();
50+
$('#product-comments-list .grade-stars').rating();
51+
$('.product-comments-additional-info .grade-stars').rating();
5052
});
5153

5254
const updateCommentPostErrorModal = $('#update-comment-usefulness-post-error');

0 commit comments

Comments
 (0)