Merge pull request #4061 from aignatov-bio/ai-sci-6761-pagination-show-last-page-message-after-second-page

Show last page message only after second page [SCI-6761]
This commit is contained in:
aignatov-bio 2022-04-28 14:14:16 +02:00 committed by GitHub
commit 870a037508
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}
}