|
|
|
@@ -98,7 +98,6 @@ function search(){ |
|
|
|
console.log("enter here 1."); |
|
|
|
currentSearchKeyword = document.getElementById("keyword_input").value; |
|
|
|
initPageInfo(); |
|
|
|
|
|
|
|
if(!isEmpty(currentSearchKeyword)){ |
|
|
|
currentSearchTableName = "repository"; |
|
|
|
currentSearchSortBy = sortBy[11]; |
|
|
|
@@ -115,7 +114,10 @@ function search(){ |
|
|
|
|
|
|
|
function searchLabel(tableName,keyword,sortBy="",ascending=false){ |
|
|
|
console.log("enter label search."); |
|
|
|
$('#keyword_input').val(keyword); |
|
|
|
document.getElementById("search_div").style.display=none; |
|
|
|
document.getElementById("search_label_div").style.display="block"; |
|
|
|
document.getElementById("search_label_div").innerHTML="<span>" + keyword + "</span>"; |
|
|
|
//$('#keyword_input').val(keyword); |
|
|
|
currentSearchKeyword = keyword; |
|
|
|
initPageInfo(); |
|
|
|
currentSearchTableName = tableName; |
|
|
|
@@ -667,6 +669,9 @@ $('#keyword_input').on('keypress',function(event){ |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
document.getElementById("search_div").style.display="block"; |
|
|
|
document.getElementById("search_label_div").style.display=none; |
|
|
|
|
|
|
|
document.onreadystatechange = function() { |
|
|
|
if (document.readyState === "complete") { |
|
|
|
var keyword = $('#keyword_input').val(); |
|
|
|
|