Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit a6b0438

Browse files
ENGCOM-1221: [Forwardport] Update process-reviews.js #14503
- Merge Pull Request magento/magento2#14503 from mastiuhin-olexandr/magento2:2.3-develop-PR-port-14439 - Merged commits: 1. 54a4977
2 parents 5a7c3bd + 54a4977 commit a6b0438

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Review/view/frontend/web/js/process-reviews.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,15 +50,15 @@ define([
5050

5151
$(function () {
5252
$('.product-info-main .reviews-actions a').click(function (event) {
53-
var acnchor;
53+
var anchor;
5454

5555
event.preventDefault();
56-
acnchor = $(this).attr('href').replace(/^.*?(#|$)/, '');
56+
anchor = $(this).attr('href').replace(/^.*?(#|$)/, '');
5757
$('.product.data.items [data-role="content"]').each(function (index) { //eslint-disable-line
5858
if (this.id == 'reviews') { //eslint-disable-line eqeqeq
5959
$('.product.data.items').tabs('activate', index);
6060
$('html, body').animate({
61-
scrollTop: $('#' + acnchor).offset().top - 50
61+
scrollTop: $('#' + anchor).offset().top - 50
6262
}, 300);
6363
}
6464
});

0 commit comments

Comments
 (0)