mirror of
https://github.com/apache/cloudstack.git
synced 2025-11-03 04:12:31 +01:00
advanced search dialog box - Enter key pressing at any place in this dialog has the same effect as clicking search button in this dialog.
This commit is contained in:
parent
965026a4a5
commit
70d956cc6f
@ -245,6 +245,14 @@ $(document).ready(function() {
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
$advancedSearch.unbind("keypress").bind("keypress", function(event) {
|
||||
event.stopPropagation();
|
||||
if(event.keyCode == keycode_Enter) {
|
||||
event.preventDefault();
|
||||
$(this).find("#adv_search_button").click();
|
||||
}
|
||||
});
|
||||
|
||||
if(isAdmin())
|
||||
$advancedSearch.find("#adv_search_domain_li, #adv_search_account_li, #adv_search_pod_li").show();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user