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