don't display entries twice when refreshing during loading (fix #473)

This commit is contained in:
Athou
2013-08-01 11:17:38 +02:00
parent 10fdffc378
commit 8df587aaad
5 changed files with 33 additions and 1 deletions

View File

@@ -721,6 +721,9 @@ module.controller('FeedListCtrl', [
}
var callback = function(data) {
if (data.offset == 0) {
$scope.entries = [];
}
for ( var i = 0; i < data.entries.length; i++) {
$scope.entries.push(data.entries[i]);
}