This commit is contained in:
barisusakli
2015-04-22 13:47:41 -04:00
parent 6dfb229c66
commit dd61bdb9c6
9 changed files with 51 additions and 18 deletions

View File

@@ -13,7 +13,7 @@ pagination.create = function(currentPage, pageCount, queryObj) {
pages: []
};
}
pageCount = parseInt(pageCount, 10);
var pagesToShow = [1, 2, pageCount - 1, pageCount];
currentPage = parseInt(currentPage, 10) || 1;