From 4f821747bae7726f1b7a9a30348ac5935f93c214 Mon Sep 17 00:00:00 2001 From: calzoneman Date: Thu, 21 Nov 2013 00:08:49 -0600 Subject: [PATCH] Fix paginator bug --- www/assets/js/paginator.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/assets/js/paginator.js b/www/assets/js/paginator.js index e2fcac53..27be0ef9 100644 --- a/www/assets/js/paginator.js +++ b/www/assets/js/paginator.js @@ -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)