if (egSerialsCoreSvc.itemList.length >= offset + count) { // if there's anything on the requested page, notify
return self.arrayNotifier(egSerialsCoreSvc.itemList, offset, count);
} else { // else try to fetch another page
- return egSerialsCoreSvc.fetchItemsForSubPaged($scope.ssubId, _paging_filter, offset, count).then(function() {
+ return egSerialsCoreSvc.fetchItemsForSubPaged(
+ $scope.ssubId,
+ _paging_filter,
+ egSerialsCoreSvc.itemList.length,
+ count + offset - egSerialsCoreSvc.itemList.length
+ ).then(function() {
return self.arrayNotifier(egSerialsCoreSvc.itemList, offset, count);
});
}