diff --git a/ui/jsp/host.jsp b/ui/jsp/host.jsp index 9ff50dbb9f0..eb111c00503 100644 --- a/ui/jsp/host.jsp +++ b/ui/jsp/host.jsp @@ -993,3 +993,54 @@ + + +
+ diff --git a/ui/scripts/cloud.core.host.js b/ui/scripts/cloud.core.host.js index 7a386f2e3cc..a3e649fdad4 100644 --- a/ui/scripts/cloud.core.host.js +++ b/ui/scripts/cloud.core.host.js @@ -19,25 +19,26 @@ function hostGetSearchParams() { var moreCriteria = []; - - /* + var $advancedSearchPopup = $("#advanced_search_popup"); if (lastSearchType == "advanced_search" && $advancedSearchPopup.length > 0) { var name = $advancedSearchPopup.find("#adv_search_name").val(); if (name!=null && trim(name).length > 0) moreCriteria.push("&name="+todb(name)); - if ($advancedSearchPopup.find("#adv_search_domain_li").css("display") != "none") { - var domainId = $advancedSearchPopup.find("#adv_search_domain").val(); - if (domainId!=null && domainId.length > 0) - moreCriteria.push("&domainid="+domainId); - } - - if ($advancedSearchPopup.find("#adv_search_account_li").css("display") != "none") { - var account = $advancedSearchPopup.find("#adv_search_account").val(); - if (account!=null && account.length > 0) - moreCriteria.push("&account="+account); - } + var state = $advancedSearchPopup.find("#adv_search_state").val(); + if (state!=null && state.length > 0) + moreCriteria.push("&state="+todb(state)); + + var zone = $advancedSearchPopup.find("#adv_search_zone").val(); + if (zone!=null && zone.length > 0) + moreCriteria.push("&zoneId="+zone); + + if ($advancedSearchPopup.find("#adv_search_pod_li").css("display") != "none") { + var pod = $advancedSearchPopup.find("#adv_search_pod").val(); + if (pod!=null && pod.length > 0) + moreCriteria.push("&podId="+pod); + } } else { var searchInput = $("#basic_search").find("#search_input").val(); @@ -45,8 +46,7 @@ function hostGetSearchParams() { moreCriteria.push("&keyword="+todb(searchInput)); } } - */ - + return moreCriteria.join(""); }