mirror of https://github.com/calzoneman/sync.git
Fix paginator bug
This commit is contained in:
parent
85e413bcdf
commit
4f821747ba
|
@ -19,7 +19,7 @@
|
|||
}
|
||||
|
||||
P.prototype.loadButtons = function (p) {
|
||||
var pages = parseInt(this.items.length / this.opts.itemsPerPage+0.5);
|
||||
var pages = parseInt(this.items.length / this.opts.itemsPerPage) + 1;
|
||||
var endcaps = pages > this.opts.maxPages;
|
||||
this.paginator.html("");
|
||||
if(this.items.length < this.opts.itemsPerPage)
|
||||
|
|
Loading…
Reference in New Issue