From 9b4b13a721d7bdec5296002b2727369bdc4444ec Mon Sep 17 00:00:00 2001 From: jendib Date: Sat, 2 May 2015 17:15:37 +0200 Subject: [PATCH] Convert JS click event to links --- .../webapp/src/app/docs/controller/Document.js | 14 -------------- .../src/main/webapp/src/partial/docs/document.html | 8 ++++++-- .../webapp/src/partial/docs/document.view.html | 2 +- 3 files changed, 7 insertions(+), 17 deletions(-) diff --git a/docs-web/src/main/webapp/src/app/docs/controller/Document.js b/docs-web/src/main/webapp/src/app/docs/controller/Document.js index 4c15e862..6af0d944 100644 --- a/docs-web/src/main/webapp/src/app/docs/controller/Document.js +++ b/docs-web/src/main/webapp/src/app/docs/controller/Document.js @@ -95,20 +95,6 @@ angular.module('docs').controller('Document', function($scope, $timeout, $state, $scope.loadDocuments(); }); - /** - * Go to add document form. - */ - $scope.addDocument = function() { - $state.transitionTo('document.add'); - }; - - /** - * Go to edit document form. - */ - $scope.editDocument = function(id) { - $state.transitionTo('document.edit', { id: id }); - }; - /** * Display a document. */ diff --git a/docs-web/src/main/webapp/src/partial/docs/document.html b/docs-web/src/main/webapp/src/partial/docs/document.html index 762b2ad3..1d773b59 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.html @@ -2,7 +2,7 @@

- + Add a document

@@ -34,7 +34,11 @@ - {{ document.title }} ({{ document.file_count }}) + + {{ document.title }} ({{ document.file_count }}) + + + {{ document.create_date | date: 'yyyy-MM-dd' }}
diff --git a/docs-web/src/main/webapp/src/partial/docs/document.view.html b/docs-web/src/main/webapp/src/partial/docs/document.view.html index 4550469c..7eb39f0c 100644 --- a/docs-web/src/main/webapp/src/partial/docs/document.view.html +++ b/docs-web/src/main/webapp/src/partial/docs/document.view.html @@ -4,7 +4,7 @@
- + Edit