mirror of
https://git.victorphan.net/basketballcantho/Teedy_custom.git
synced 2026-08-05 22:03:11 +07:00
Sequential files upload, basic search system
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user