mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 14:05:46 +01:00
fix test
This commit is contained in:
@@ -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) };
|
||||||
|
|||||||
Reference in New Issue
Block a user