Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Fix pagination links generation #5

Merged
merged 1 commit into from

2 participants

@Hebo

The last type would always be considered the one with the most results (pages).

@Hebo Hebo fix pagination links generation
The last type would always be considered the one with the most results (pages).
a2b0df9
@qhoxie qhoxie merged commit c4dfc92 into swiftype:master
@qhoxie
Owner

Thanks James. Good catch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 14, 2012
  1. @Hebo

    fix pagination links generation

    Hebo authored
    The last type would always be considered the one with the most results (pages).
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 0 deletions.
  1. +1 −0  jquery.swiftype.search.js
View
1  jquery.swiftype.search.js
@@ -178,6 +178,7 @@
$.each(resultInfo, function(documentType, typeInfo) {
if (typeInfo.num_pages > maxPages) {
maxPagesType = documentType;
+ maxPages = typeInfo.num_pages;
}
});
var currentPage = resultInfo[maxPagesType].current_page,
Something went wrong with that request. Please try again.