Block browser from sending GET on Enter key press
This commit is contained in:
parent
e9cfc556d0
commit
34ad552a0c
|
|
@ -6,4 +6,9 @@ $(document).ready(function() {
|
|||
|
||||
$('#registered_user_group').change(saveSettings);
|
||||
$('#allowed_domains').change(saveSettings);
|
||||
$('#registration').keypress(function(event) {
|
||||
if (event.keyCode === 13) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue