mirror of https://gitee.com/bigwinds/arangodb
When deleting a docement the Total Number of documents counter is updated correctly Issue #460
This commit is contained in:
parent
d3171179e4
commit
78f98a20ab
|
@ -284,7 +284,13 @@ var documentsView = Backbone.View.extend({
|
|||
target.pagination(options);
|
||||
$('#documentsToolbarF').prepend('<ul class="prePagi"><li><a id="documents_first"><i class="icon icon-step-backward"></i></a></li></ul>');
|
||||
$('#documentsToolbarF').append('<ul class="lasPagi"><li><a id="documents_last"><i class="icon icon-step-forward"></i></a></li></ul>');
|
||||
$('#documentsToolbarFL').append('<a id="totalDocuments">Total: ' + this.documentsCount + ' documents </a>');
|
||||
var total = $('#totalDocuments');
|
||||
console.log(total);
|
||||
if (total.length > 0) {
|
||||
total.html("Total: " + this.documentsCount + " documents");
|
||||
} else {
|
||||
$('#documentsToolbarFL').append('<a id="totalDocuments">Total: ' + this.documentsCount + ' documents </a>');
|
||||
}
|
||||
},
|
||||
breadcrumb: function () {
|
||||
var name = window.location.hash.split("/")[1];
|
||||
|
|
Loading…
Reference in New Issue