Skip to content

Commit

Permalink
Merge pull request PrestaShop#20965 from davidglezz/patch-15
Browse files Browse the repository at this point in the history
Remove undefined 2nd argument passed to scrollToPreviousPaginationBar()
  • Loading branch information
PierreRambaud authored Sep 14, 2020
2 parents 8e98dc3 + 0969533 commit d0265c9
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export default function () {

$('.translation-domain .go-to-pagination-bar').click((event) => {
const paginationBar = $(event.target).parents('.translation-domain').find('.pagination')[0];
scrollToPreviousPaginationBar(paginationBar, event.target);
scrollToPreviousPaginationBar(paginationBar);

return false;
});
Expand All @@ -93,7 +93,7 @@ export default function () {

$(nav).find('.page-link').click((event) => {
const paginationBar = $(event.target).parents('.pagination')[0];
scrollToPreviousPaginationBar(paginationBar, event.target);
scrollToPreviousPaginationBar(paginationBar);
});

$(nav).find('.page-item').click((event) => {
Expand Down

0 comments on commit d0265c9

Please sign in to comment.