diff --git a/public_html/js/Presenters/PagedCollectionPresenter.js b/public_html/js/Presenters/PagedCollectionPresenter.js index 3da01eca..fab1d837 100644 --- a/public_html/js/Presenters/PagedCollectionPresenter.js +++ b/public_html/js/Presenters/PagedCollectionPresenter.js @@ -13,6 +13,7 @@ App.Presenters.PagedCollectionPresenter = function( browsingSettings) { var $target; + var $pageList; var targetContent; var endlessScroll = browsingSettings.getSettings().endlessScroll; var scrollInterval; @@ -162,8 +163,14 @@ App.Presenters.PagedCollectionPresenter = function( function refreshPageList() { var pages = getVisiblePages(); - $target.find('.page-list').empty(); + $pageList.empty(); + var lastPage = 0; _.each(pages, function(page) { + if (page - lastPage > 1) { + $pageList.append(jQuery('