We upgraded from 1.0.5 to 1.3.4 version, the infinite scroll stopped working.
The idLast variable in news_infinite_scroll.js is of type String.
// Generate all urls from first to last
for (i = idNext; i <= idLast; i++) {
let url = hrefNext.replace(regexpNext, 'page_n' + idModule + '=' + i);
_arrUrls.push(url);
}
e.g. idNext = 2 and idLast = 17 will not push any URL to _arrUrls. Using parseInt function solves the issue.
As workaround we need to restrict the number of pagination links.
Gesamtzahl der Beiträge - 25 (instead of 0)
Elemente pro Seite - 5
We upgraded from 1.0.5 to 1.3.4 version, the infinite scroll stopped working.
The
idLast
variable innews_infinite_scroll.js
is of type String.e.g.
idNext = 2
andidLast = 17
will not push any URL to_arrUrls
. UsingparseInt
function solves the issue.As workaround we need to restrict the number of pagination links.
Gesamtzahl der Beiträge - 25 (instead of 0) Elemente pro Seite - 5