Commit df293191 authored by Pierre Goubeaux's avatar Pierre Goubeaux

hotfix sur la pagination

parent 4966df45
......@@ -142,7 +142,7 @@ var searchObj = {
coInterface.showLoader(fObj.results.dom, trad.currentlyresearching);
},
event : function(fObj){
numberPage=Math.floor(fObj.results.numberOfResults(fObj)/searchObject.indexStep);
numberPage=Math.ceil(fObj.results.numberOfResults(fObj)/searchObject.indexStep);
$('.pageTable').pagination({
items: numberPage,
itemOnPage: searchObject.indexStep,
......@@ -445,8 +445,8 @@ var searchObj = {
res=false;
if(searchObject.types.length > 1){
$.each(searchObject.types, function(e, v){
if($.inArray(v,["NGO", "LocalBusiness", "Group", "GovernmentOrganization", "Cooperative"]) == -1)
res = true;
if($.inArray(v,["NGO", "LocalBusiness", "Group", "GovernmentOrganization"]) == -1)
res = true;
});
}
return res;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment