|
|
@ -38,10 +38,10 @@ pagination.create = function (currentPage, pageCount, queryObj) {
|
|
|
|
return a - b;
|
|
|
|
return a - b;
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
delete queryObj._;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
queryObj = _.clone(queryObj || {});
|
|
|
|
queryObj = _.clone(queryObj || {});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
delete queryObj._;
|
|
|
|
|
|
|
|
|
|
|
|
var pages = pagesToShow.map(function (page) {
|
|
|
|
var pages = pagesToShow.map(function (page) {
|
|
|
|
queryObj.page = page;
|
|
|
|
queryObj.page = page;
|
|
|
|
return { page: page, active: page === currentPage, qs: qs.stringify(queryObj) };
|
|
|
|
return { page: page, active: page === currentPage, qs: qs.stringify(queryObj) };
|
|
|
|