forked from Archives/Athou_commafeed
calculate offset correctly for tags and starred listing (fix #530)
This commit is contained in:
@@ -724,7 +724,10 @@ module.controller('FeedListCtrl', [
|
|||||||
$scope.busy = true;
|
$scope.busy = true;
|
||||||
|
|
||||||
var limit = $scope.limit;
|
var limit = $scope.limit;
|
||||||
var offset = SettingsService.settings.readingMode == 'all' ? $scope.entries.length : _.where($scope.entries, {
|
|
||||||
|
var read_shown = SettingsService.settings.readingMode === 'all' || $scope.selectedType === 'tag'
|
||||||
|
|| ($scope.selectedType === 'category' && $scope.selectedId === 'starred');
|
||||||
|
var offset = read_shown ? $scope.entries.length : _.where($scope.entries, {
|
||||||
read : false
|
read : false
|
||||||
}).length;
|
}).length;
|
||||||
if ($scope.entries.length === 0) {
|
if ($scope.entries.length === 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user