Bugfix, display number of documents found

This commit is contained in:
jendib 2013-08-01 00:35:27 +02:00
parent e0bccf7121
commit 4d50b220a2
4 changed files with 6 additions and 3 deletions

View File

@ -1,2 +1,2 @@
- Server side reordering files
- GET /app/stats to display general data (server/client)
- GET /app/stats to display general data (server/client)

View File

@ -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 = {};

View File

@ -2,5 +2,5 @@
<ul class="inline">
<li ng-repeat="tag in tags"><span class="label label-info">{{ tag.name }} <span class="icon-remove icon-white" ng-click="deleteTag(tag)"></span></span></li>
</ul>
<input type="text" id="{{ ref }}" placeholder="Type a tag" ng-model="input" typeahead="tag.name for tag in allTags | filter: $viewValue" typeahead-on-select="addTag()" />
<input type="text" id="{{ ref }}" placeholder="Type a tag" ng-model="input" autocomplete="off" typeahead="tag.name for tag in allTags | filter: $viewValue" typeahead-on-select="addTag()" />
</div>

View File

@ -49,6 +49,9 @@
<div class="text-center">
<pagination num-pages="numPages" max-size="5" current-page="currentPage"></pagination>
</div>
<div class="text-right">
{{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found
</div>
</div>
<div class="span8 well">
<div ui-view="document"></div>