From 4d50b220a21df3b1f43cf33da20d4a5bf267c836 Mon Sep 17 00:00:00 2001 From: jendib Date: Thu, 1 Aug 2013 00:35:27 +0200 Subject: [PATCH] Bugfix, display number of documents found --- docs-parent/TODO | 2 +- docs-web/src/main/webapp/js/controller/DocumentEdit.js | 2 +- docs-web/src/main/webapp/partial/directive.selecttag.html | 2 +- docs-web/src/main/webapp/partial/document.html | 3 +++ 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/docs-parent/TODO b/docs-parent/TODO index 3c84585a..e559e087 100644 --- a/docs-parent/TODO +++ b/docs-parent/TODO @@ -1,2 +1,2 @@ - Server side reordering files -- GET /app/stats to display general data (server/client) \ No newline at end of file +- GET /app/stats to display general data (server/client) diff --git a/docs-web/src/main/webapp/js/controller/DocumentEdit.js b/docs-web/src/main/webapp/js/controller/DocumentEdit.js index 3c7c96e8..50142b77 100644 --- a/docs-web/src/main/webapp/js/controller/DocumentEdit.js +++ b/docs-web/src/main/webapp/js/controller/DocumentEdit.js @@ -55,7 +55,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams, // When all files upload are over, move on var navigateNext = function() { if ($scope.isEdit()) { - $scope.loadDocuments(); + $scope.pageDocuments(); $state.transitionTo('document.view', { id: $stateParams.id }); } else { $scope.document = {}; diff --git a/docs-web/src/main/webapp/partial/directive.selecttag.html b/docs-web/src/main/webapp/partial/directive.selecttag.html index 5d74d5e9..693130e8 100644 --- a/docs-web/src/main/webapp/partial/directive.selecttag.html +++ b/docs-web/src/main/webapp/partial/directive.selecttag.html @@ -2,5 +2,5 @@ - + \ No newline at end of file diff --git a/docs-web/src/main/webapp/partial/document.html b/docs-web/src/main/webapp/partial/document.html index 3a3c20a9..cd619919 100644 --- a/docs-web/src/main/webapp/partial/document.html +++ b/docs-web/src/main/webapp/partial/document.html @@ -49,6 +49,9 @@
+
+ {{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found +