Disable enter on profiles create/edit for duplicate profile name check

This commit is contained in:
Jonathan 2022-12-16 09:53:10 +01:00
parent 14b884b53d
commit 97c967ede8
1 changed files with 8 additions and 0 deletions

View File

@ -426,6 +426,14 @@ enterprise_hook('close_meta_frame');
$(id).css({'cursor':'not-allowed', 'opacity':'0.5'});
});
}
//Not enable enter for prevent submits
$(window).keydown(function(event){
if(event.keyCode == 13) {
event.preventDefault();
return false;
}
});
});
$('#text-name').on('blur',function(){