1
0
Fork 0

When deleting a docement the Total Number of documents counter is updated correctly Issue #460

This commit is contained in:
Michael Hackstein 2013-03-24 00:03:09 +01:00
parent d3171179e4
commit 78f98a20ab
1 changed files with 7 additions and 1 deletions

View File

@ -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];