Show last page message only after second page [SCI-6761]

This commit is contained in:
Anton 2022-04-28 14:11:11 +02:00
parent 892b5e2348
commit 36ae58872f

View file

@ -26,7 +26,7 @@ var InfiniteScroll = (function() {
$container.data('next-page', result.next_page);
} else {
$container.addClass('last-page');
if ($container.data('config').endOfListTemplate) {
if ($container.data('config').endOfListTemplate && page > 2) {
$($($container.data('config').endOfListTemplate).html()).appendTo($container);
}
}