Browse Source

提交代码,重定向

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

+ 15
- 15
public/home/search.js View File

@@ -934,11 +934,7 @@ $('#keyword_input').on('keypress',function(event){
} }
}); });


document.onreadystatechange = function() {
if (document.readyState === "complete") {
search();
}
}







@@ -1283,14 +1279,18 @@ var zhCN={
"find_title":" {total} \"<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>\" related {tablename}", "find_title":" {total} \"<strong class=\"highlight\" id=\"keyword_desc\">{keyword}</strong>\" related {tablename}",
"search_empty":"<strong>Please enter any keyword to start the search.</strong>" "search_empty":"<strong>Please enter any keyword to start the search.</strong>"
} }
initDiv(false);
document.onreadystatechange = function() {
if (document.readyState === "complete") {
var tmpSearchLabel = sessionStorage.getItem("searchLabel");
if(tmpSearchLabel){
console.log("search label....");
doSearchLabel(sessionStorage.getItem("tableName"),sessionStorage.getItem("keyword"),sessionStorage.getItem("sortBy"),sessionStorage.getItem("ascending"))
}else{
console.log("normal search....");
search();
}
}
}



initDiv(false);

var tmpSearchLabel = sessionStorage.getItem("searchLabel");
if(tmpSearchLabel){
console.log("search label....");
doSearchLabel(sessionStorage.getItem("tableName"),sessionStorage.getItem("keyword"),sessionStorage.getItem("sortBy"),sessionStorage.getItem("ascending"))
}else{
console.log("normal search....");
}

Loading…
Cancel
Save