diff --git a/docs-parent/TODO b/docs-parent/TODO index 77c83d1a..ce64d70d 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1 +1,2 @@ - Reordering files (server) +- Autocomplete on document title diff --git a/docs-web/src/main/webapp/js/controller/DocumentEdit.js b/docs-web/src/main/webapp/js/controller/DocumentEdit.js index 0884018e..45714eaa 100644 --- a/docs-web/src/main/webapp/js/controller/DocumentEdit.js +++ b/docs-web/src/main/webapp/js/controller/DocumentEdit.js @@ -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' });