Sequential files upload, basic search system

This commit is contained in:
jendib
2013-07-29 00:04:34 +02:00
parent 51434752f5
commit cd97382f60
12 changed files with 153 additions and 40 deletions
@@ -22,7 +22,8 @@ App.controller('Document', function($scope, $state, Restangular) {
offset: $scope.offset,
limit: $scope.limit,
sort_column: $scope.sortColumn,
asc: $scope.asc
asc: $scope.asc,
search: $scope.search
})
.then(function(data) {
$scope.documents = data;
@@ -47,6 +48,12 @@ App.controller('Document', function($scope, $state, Restangular) {
$scope.pageDocuments();
});
$scope.$watch('search', function(prev, next) {
if (next) {
$scope.loadDocuments();
}
})
/**
* Sort documents.
*/