...
|
...
|
@@ -33,7 +33,7 @@ exports.createPagination = function(pagination, options) { |
|
|
queryParams = '', // paginate with query parameter
|
|
|
page = parseInt(pagination.page, 10), // current page number
|
|
|
leftText = '<i class="iconfont"></i>', // prev
|
|
|
rightText = '<i class="iconfont"></i>', // next
|
|
|
rightText = '<i class="iconfont"></i>', // next
|
|
|
paginationClass = 'blk-pagination'; // pagination <ul> default class
|
|
|
|
|
|
var pageCount,
|
...
|
...
|
@@ -68,7 +68,7 @@ exports.createPagination = function(pagination, options) { |
|
|
paginationClass = options.hash.paginationClass;
|
|
|
}
|
|
|
|
|
|
pageCount = Math.ceil(pagination.totalRows / pagination.limit);
|
|
|
pageCount = Math.ceil(pagination.total / pagination.limit);
|
|
|
|
|
|
// query params
|
|
|
if (pagination.queryParams) {
|
...
|
...
|
|