Bugfix tags selection, TODO

This commit is contained in:
jendib 2013-08-02 00:08:05 +02:00
parent dcf3e49cb3
commit 5ba3fabf7a
2 changed files with 3 additions and 4 deletions

View File

@ -1 +1,2 @@
- Reordering files (server) - Reordering files (server)
- Autocomplete on document title

View File

@ -29,9 +29,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
$scope.document = data; $scope.document = data;
}); });
} else { } else {
$scope.document = { $scope.document = { tags: [] };
tags: []
};
} }
/** /**
@ -68,7 +66,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
$scope.pageDocuments(); $scope.pageDocuments();
$state.transitionTo('document.view', { id: $stateParams.id }); $state.transitionTo('document.view', { id: $stateParams.id });
} else { } else {
$scope.document = {}; $scope.document = { tags: [] };
$scope.newFiles = []; $scope.newFiles = [];
$scope.loadDocuments(); $scope.loadDocuments();
$scope.alerts.push({ type: 'success', msg: 'Document successfully added' }); $scope.alerts.push({ type: 'success', msg: 'Document successfully added' });