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:
Michael RICOIS 2013-10-25 14:00:28 +00:00
parent a721247c41
commit 1d6492ac4b

View File

@ -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){