Skip to content

Commit

Permalink
fix load more ajax button
Browse files Browse the repository at this point in the history
  • Loading branch information
vvohh committed Aug 26, 2022
1 parent b316b4c commit f3bdcc1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

All notable changes to this project will be documented in this file.

## [1.49.2] - 2022-08-26
- Fixed: js query ajax next button

## [1.49.1] - 2022-08-16
- Fixed: exception with dc_multilingual and categories

Expand Down
2 changes: 1 addition & 1 deletion src/Resources/assets/js/contao-list-bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -310,7 +310,7 @@ class ListBundle {
ajaxPagination.innerHTML = '';

if (loadedDoc.querySelector('.huh-list .ajax-pagination a.next')) {
let nextButton = loadedDoc.querySelector('.huh-list .ajax-pagination a.next');
let nextButton = loadedDoc.querySelector('.huh-list #' + list.querySelector('.wrapper').getAttribute('id') + ' .ajax-pagination a.next');

nextButton.addEventListener('click', e => {
e.preventDefault();
Expand Down

0 comments on commit f3bdcc1

Please sign in to comment.