| @@ -102,6 +102,7 @@ function initPageInfo(){ | |||||
| function searchItem(type,sortType){ | function searchItem(type,sortType){ | ||||
| console.log("enter item 2."); | console.log("enter item 2."); | ||||
| currentSearchKeyword = document.getElementById("keyword_input").value; | currentSearchKeyword = document.getElementById("keyword_input").value; | ||||
| sessionStorage.setItem("searchLabel",false); | |||||
| if(!isEmpty(currentSearchKeyword)){ | if(!isEmpty(currentSearchKeyword)){ | ||||
| initPageInfo(); | initPageInfo(); | ||||
| currentSearchTableName = itemType[type]; | currentSearchTableName = itemType[type]; | ||||
| @@ -121,6 +122,7 @@ function search(){ | |||||
| if(!isEmpty(currentSearchKeyword)){ | if(!isEmpty(currentSearchKeyword)){ | ||||
| currentSearchKeyword = currentSearchKeyword.trim(); | currentSearchKeyword = currentSearchKeyword.trim(); | ||||
| } | } | ||||
| sessionStorage.setItem("searchLabel",false); | |||||
| $('#searchForm').addClass("hiddenSearch"); | $('#searchForm').addClass("hiddenSearch"); | ||||
| initPageInfo(); | initPageInfo(); | ||||
| if(!isEmpty(currentSearchKeyword)){ | if(!isEmpty(currentSearchKeyword)){ | ||||
| @@ -1290,5 +1292,5 @@ var zhCN={ | |||||
| console.log("search label...."); | console.log("search label...."); | ||||
| doSearchLabel(sessionStorage.getItem("tableName"),sessionStorage.getItem("keyword"),sessionStorage.getItem("sortBy"),sessionStorage.getItem("ascending")) | doSearchLabel(sessionStorage.getItem("tableName"),sessionStorage.getItem("keyword"),sessionStorage.getItem("sortBy"),sessionStorage.getItem("ascending")) | ||||
| }else{ | }else{ | ||||
| console.log("normal search...."); | |||||
| console.log("normal search...."); | |||||
| } | } | ||||