This commit is contained in:
Benjamin Gamard 2013-08-11 23:09:28 +02:00 committed by jendib
parent 10b31aec29
commit 2c430f522c

View File

@ -44,7 +44,7 @@ App.controller('Document', function($scope, $state, Restangular) {
})
.then(function(data) {
$scope.documents = data.documents;
$scope.totalDocuments = data.total; // TODO This is not really the total number of documents
$scope.totalDocuments = data.total;
$scope.numPages = Math.ceil(data.total / $scope.limit);
});
};