issue #0001750 : Remove javascrip catch event as it's disable the field and we want a catch event (on keypress) on the dialog to submit the form
This commit is contained in:
parent
a721247c41
commit
1d6492ac4b
@ -272,13 +272,6 @@ $('input[name=PDetention]').on('blur', function(e){
|
||||
}
|
||||
});
|
||||
|
||||
$('input[name=PDetention]').keypress(function(e){
|
||||
e.preventDefault();
|
||||
if (e.which==13) {
|
||||
$('#dialog .ui-button:contains("Valider")').click();
|
||||
}
|
||||
});
|
||||
|
||||
$('#dialog').dialog({ buttons: [
|
||||
{ text: "Valider", click: function() {
|
||||
if ($('input[name=PDetention]').val()>100){
|
||||
|
Loading…
Reference in New Issue
Block a user