1
0
mirror of https://github.com/sismics/docs.git synced 2025-05-08 18:53:22 +02:00
This commit is contained in:
Benjamin Gamard 2013-08-11 23:09:28 +02:00 committed by jendib
parent 10b31aec29
commit 2c430f522c

@ -44,7 +44,7 @@ App.controller('Document', function($scope, $state, Restangular) {
}) })
.then(function(data) { .then(function(data) {
$scope.documents = data.documents; $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); $scope.numPages = Math.ceil(data.total / $scope.limit);
}); });
}; };