Skip to content

Commit

Permalink
Update review.twig
Browse files Browse the repository at this point in the history
  • Loading branch information
danielkerr committed Jul 4, 2022
1 parent c46ce8a commit 1708f65
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions upload/catalog/view/template/product/review.twig
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,9 @@ $('#form-review').on('submit', function (e) {
if (json['success']) {
$('#alert').prepend('<div class="alert alert-success alert-dismissible"><i class="fa-solid fa-circle-exclamation"></i> ' + json['success'] + ' <button type="button" class="btn-close" data-bs-dismiss="alert"></button></div>');
$('#input-text').val('');
$('#input-rating input[type=\'radio\']').prop('checked', false);
}
},
error: function (xhr, ajaxOptions, thrownError) {
Expand Down

0 comments on commit 1708f65

Please sign in to comment.