Fix paginator bug

This commit is contained in:
calzoneman 2013-11-21 00:08:49 -06:00
parent 85e413bcdf
commit 4f821747ba
1 changed files with 1 additions and 1 deletions

View File

@ -19,7 +19,7 @@
} }
P.prototype.loadButtons = function (p) { 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; var endcaps = pages > this.opts.maxPages;
this.paginator.html(""); this.paginator.html("");
if(this.items.length < this.opts.itemsPerPage) if(this.items.length < this.opts.itemsPerPage)