mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-06 22:15:48 +01:00
closes #3063
This commit is contained in:
@@ -44,12 +44,11 @@ pagination.create = function(currentPage, pageCount, queryObj) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var data = {
|
var data = {rel: [], pages: pages};
|
||||||
prev: {page: previous, active: currentPage > 1},
|
queryObj.page = previous;
|
||||||
next: {page: next, active: currentPage < pageCount},
|
data.prev = {page: previous, active: currentPage > 1, qs: qs.stringify(queryObj)};
|
||||||
rel: [],
|
queryObj.page = next;
|
||||||
pages: pages
|
data.next = {page: next, active: currentPage < pageCount, qs: qs.stringify(queryObj)};
|
||||||
};
|
|
||||||
|
|
||||||
if (currentPage < pageCount) {
|
if (currentPage < pageCount) {
|
||||||
data.rel.push({
|
data.rel.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user