mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-02 20:02:29 +01:00
Alert page - implement basic search and advanced search.
This commit is contained in:
parent
9075d56863
commit
9f5b03d0f7
@ -80,4 +80,28 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- alert detail panel (end) -->
|
||||
<!-- alert detail panel (end) -->
|
||||
|
||||
|
||||
<!-- advanced search template (begin) -->
|
||||
<div id="advanced_search_template" class="adv_searchpopup" style="display: none;">
|
||||
<div class="adv_searchformbox">
|
||||
<h3>
|
||||
Advance Search</h3>
|
||||
<a id="advanced_search_close" href="#">Close </a>
|
||||
<form action="#" method="post">
|
||||
<ol>
|
||||
<li>
|
||||
<label>
|
||||
Type:</label>
|
||||
<input class="text" type="text" id="adv_search_type" />
|
||||
</li>
|
||||
</ol>
|
||||
</form>
|
||||
<div class="adv_search_actionbox">
|
||||
<div class="adv_searchpopup_button" id="adv_search_button">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- advanced search template (end) -->
|
||||
@ -16,8 +16,23 @@
|
||||
*
|
||||
*/
|
||||
|
||||
function alertGetSearchParams() {
|
||||
return "";
|
||||
function alertGetSearchParams() {
|
||||
var moreCriteria = [];
|
||||
|
||||
var $advancedSearchPopup = $("#advanced_search_popup");
|
||||
if (lastSearchType == "advanced_search" && $advancedSearchPopup.length > 0) {
|
||||
var type = $advancedSearchPopup.find("#adv_search_type").val();
|
||||
if (type!=null && type.length > 0)
|
||||
moreCriteria.push("&type="+todb(type));
|
||||
}
|
||||
else {
|
||||
var searchInput = $("#basic_search").find("#search_input").val();
|
||||
if (lastSearchType == "basic_search" && searchInput != null && searchInput.length > 0) {
|
||||
moreCriteria.push("&type="+todb(searchInput));
|
||||
}
|
||||
}
|
||||
|
||||
return moreCriteria.join("");
|
||||
}
|
||||
|
||||
function afterLoadAlertJSP() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user