mirror of
https://github.com/sismics/docs.git
synced 2024-11-25 15:17:57 +01:00
Bugfix, display number of documents found
This commit is contained in:
parent
e0bccf7121
commit
4d50b220a2
@ -55,7 +55,7 @@ App.controller('DocumentEdit', function($scope, $q, $http, $state, $stateParams,
|
|||||||
// When all files upload are over, move on
|
// When all files upload are over, move on
|
||||||
var navigateNext = function() {
|
var navigateNext = function() {
|
||||||
if ($scope.isEdit()) {
|
if ($scope.isEdit()) {
|
||||||
$scope.loadDocuments();
|
$scope.pageDocuments();
|
||||||
$state.transitionTo('document.view', { id: $stateParams.id });
|
$state.transitionTo('document.view', { id: $stateParams.id });
|
||||||
} else {
|
} else {
|
||||||
$scope.document = {};
|
$scope.document = {};
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
<ul class="inline">
|
<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>
|
<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>
|
</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>
|
</div>
|
@ -49,6 +49,9 @@
|
|||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<pagination num-pages="numPages" max-size="5" current-page="currentPage"></pagination>
|
<pagination num-pages="numPages" max-size="5" current-page="currentPage"></pagination>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="text-right">
|
||||||
|
{{ totalDocuments }} document{{ totalDocuments > 1 ? 's' : '' }} found
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span8 well">
|
<div class="span8 well">
|
||||||
<div ui-view="document"></div>
|
<div ui-view="document"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user