From 7c0347a43d980c0d18e16650d2c79ee9155e09f1 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 28 Feb 2022 17:18:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4=E4=BB=A3=E7=A0=81=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zouap --- public/home/search.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/home/search.js b/public/home/search.js index d0a0acfe0..dda745aa2 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -147,6 +147,7 @@ function displayResult(tableName,page,jsonResult,onlyReturnNum,keyword){ console.log("set total num." + tableName); totalPage =Math.ceil(jsonResult.Total/pageSize); totalNum = jsonResult.Total; + setPage(page); } } @@ -528,7 +529,7 @@ function page(current){ //function doSearch(tableName,keyword,page,pageSize=15,onlyReturnNum=true,sortBy="",OnlySearchLabel=false){ currentPage=current; doSearch(currentSearchTableName,currentSearchKeyword,current,pageSize,false,currentSearchSortBy,OnlySearchLabel); - setPage(currentPage); + } function nextPage(){