mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 11:52:28 +01:00
Snapshot page - implement new advanced search.
This commit is contained in:
parent
2a87d31e93
commit
bc8b7ed1ae
@ -203,11 +203,7 @@
|
||||
<div id="advanced_search_popup" class="adv_searchpopup_bg" style="display: none;">
|
||||
<div class="adv_searchformbox">
|
||||
<form action="#" method="post">
|
||||
<ol>
|
||||
<li>
|
||||
<input class="text textwatermark" type="text" name="adv_search_name" id="adv_search_name"
|
||||
value="by name" />
|
||||
</li>
|
||||
<ol>
|
||||
<li id="adv_search_domain_li" style="display: none;">
|
||||
<select class="select" id="adv_search_domain">
|
||||
</select>
|
||||
|
||||
@ -24,19 +24,16 @@ function snapshotGetSearchParams() {
|
||||
moreCriteria.push("&keyword="+todb(searchInput));
|
||||
}
|
||||
|
||||
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));
|
||||
|
||||
var $advancedSearchPopup = getAdvancedSearchPopupInSearchContainer();
|
||||
if ($advancedSearchPopup.length > 0 && $advancedSearchPopup.css("display") != "none" ) {
|
||||
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") {
|
||||
if ($advancedSearchPopup.find("#adv_search_account_li").css("display") != "none"
|
||||
&& $advancedSearchPopup.find("#adv_search_account").hasClass("textwatermark") == false) {
|
||||
var account = $advancedSearchPopup.find("#adv_search_account").val();
|
||||
if (account!=null && account.length > 0)
|
||||
moreCriteria.push("&account="+account);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user