diff --git a/public/home/search.js b/public/home/search.js index 6bed7808b..0a937a5a9 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -578,14 +578,18 @@ function page(current){ totalPage =Math.ceil(pageData.Total/pageSize); console.log("totalPage=" + totalPage); var html =""; - for(var i=startIndex-1;i < endIndex&&(i+currentPage) totalPage){ + break; + } if( i== 0){ html += "" + page_i + ""; }else{ html += "" + page_i + ""; } } + console.log("html=" + html) document.getElementById("page_ids").innerHTML=html; if(currentPage >=totalPage){ $('#nextPage').addClass("disabled"); diff --git a/templates/explore/search_new.tmpl b/templates/explore/search_new.tmpl index a4dc98f17..fd1f338e3 100644 --- a/templates/explore/search_new.tmpl +++ b/templates/explore/search_new.tmpl @@ -77,20 +77,18 @@