...
|
...
|
@@ -78,11 +78,12 @@ exports.createPagination = function(pagination, options) { |
|
|
queryParams += key + '=' + pagination.queryParams[key] + '&';
|
|
|
}
|
|
|
}
|
|
|
lastCharacterOfQueryParams = queryParams.substring(queryParams.length, -1);
|
|
|
//lastCharacterOfQueryParams = queryParams.substring(queryParams.length, -1);
|
|
|
lastCharacterOfQueryParams = queryParams.slice(queryParams.length - 1);
|
|
|
|
|
|
if (lastCharacterOfQueryParams === '&') {
|
|
|
// trim off last & character
|
|
|
queryParams = queryParams.substring(0, queryParams.length - 1);
|
|
|
queryParams = queryParams.slice(0, queryParams.length - 1);
|
|
|
}
|
|
|
}
|
|
|
|
...
|
...
|
|