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)
- Autocomplete on document title

View File

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