mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Disable enter on profiles create/edit for duplicate profile name check
This commit is contained in:
parent
14b884b53d
commit
97c967ede8
@ -426,6 +426,14 @@ enterprise_hook('close_meta_frame');
|
|||||||
$(id).css({'cursor':'not-allowed', 'opacity':'0.5'});
|
$(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(){
|
$('#text-name').on('blur',function(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user