From 5ba3fabf7a654b29f6368f02e0d08597a7b950d1 Mon Sep 17 00:00:00 2001 From: jendib Date: Fri, 2 Aug 2013 00:08:05 +0200 Subject: [PATCH] Bugfix tags selection, TODO --- docs-parent/TODO | 1 + docs-web/src/main/webapp/js/controller/DocumentEdit.js | 6 ++---- 2 files changed, 3 insertions(+), 4 deletions(-) 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' });