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