fix pagination after jquery 3.0 update

cache: false in $.ajax breaks the query string by adding _=timestamp

the url results in `page.com/category/2/slug&page=2?_=timestamp`
This commit is contained in:
barisusakli
2016-08-29 19:08:48 +03:00
parent 6e3d525ef4
commit 6e0a36909d

View File

@@ -35,6 +35,8 @@ pagination.create = function(currentPage, pageCount, queryObj) {
queryObj = queryObj || {};
delete queryObj._;
var pages = pagesToShow.map(function(page) {
queryObj.page = page;
return {page: page, active: page === currentPage, qs: qs.stringify(queryObj)};