From 6d5558db4dcf33e9183abb98a790438bb76fd6b0 Mon Sep 17 00:00:00 2001 From: zouap Date: Mon, 28 Feb 2022 17:17:00 +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 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/public/home/search.js b/public/home/search.js index 8062eefda..d0a0acfe0 100644 --- a/public/home/search.js +++ b/public/home/search.js @@ -71,6 +71,7 @@ function searchItem(type,sortType){ currentSearchTableName = itemType[type]; currentSearchSortBy = sortBy[sortType]; OnlySearchLabel =false; + page(currentPage); } } @@ -143,6 +144,7 @@ function displayResult(tableName,page,jsonResult,onlyReturnNum,keyword){ displayPrResult(page,jsonResult,onlyReturnNum,keyword); } if(!onlyReturnNum){ + console.log("set total num." + tableName); totalPage =Math.ceil(jsonResult.Total/pageSize); totalNum = jsonResult.Total; }