mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-20 10:50:08 +03:00
bug #3272: Disable enter action in host creation form
This commit is contained in:
parent
9f7277ee08
commit
fa7831965b
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user