mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-20 11:52:37 +09:00
bug #3272: Disable enter action in host creation form
This commit is contained in:
1 parent
9f7277ee08
commit
fa7831965b
1 file changed
+8
@@ -1699,6 +1699,14 @@ function setupCreateHostDialog(){
|
||||
$('input[name="custom_vnm_mad"]').parent().hide();
|
||||
});
|
||||
|
||||
$('#create_host_form').on("keyup keypress", function(e) {
|
||||
var code = e.keyCode || e.which;
|
||||
if (code == 13) {
|
||||
e.preventDefault();
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
//Handle the form submission
|
||||
$('#create_host_form',$create_host_dialog).submit(function(){
|
||||
var name = $('#name',this).val();
|
||||
|
||||
Reference in new issue
Block a user