Browse Source

提交代码,重定向

Signed-off-by: zouap <zouap@pcl.ac.cn>
tags/v1.22.3.2^2
zouap 3 years ago
parent
commit
8ac796cbdf
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      public/home/search.js

+ 3
- 1
public/home/search.js View File

@@ -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....");
}

Loading…
Cancel
Save