diff --git a/public/home/search.js b/public/home/search.js index 8f1162b67..8062eefda 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -118,6 +118,7 @@ function doSearch(tableName,keyword,page,pageSize=15,onlyReturnNum=true,sortBy=" }, async:true, success:function(json){ + console.log("tableName=" + tableName); console.log(json); displayResult(tableName,page,json,onlyReturnNum,keyword); }, @@ -542,7 +543,7 @@ function page(current){ console.log("currentPage=" + currentPage); if(currentPage > 1){ currentPage = currentPage-1; - if(currentPage <= startIndex && startIndex >= 1){ + if(currentPage <= startIndex && startIndex > 1){ startIndex = startIndex -1; endIndex = endIndex - 1; } @@ -601,7 +602,7 @@ function page(current){ html += ""; } - html +="