Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix pagination links generation #5

Merged
merged 1 commit into from

2 participants

James R. Quin Hoxie
James R.

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

James R. Hebo fix pagination links generation
The last type would always be considered the one with the most results (pages).
a2b0df9
Quin Hoxie qhoxie merged commit c4dfc92 into from
Quin Hoxie
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. James R.

    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
1  jquery.swiftype.search.js
View
@@ -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.