From 8a8cec352aa95f832a31fade173fa801453d5493 Mon Sep 17 00:00:00 2001 From: Aram HARUTYUNYAN Date: Mon, 21 Oct 2013 12:43:06 +0000 Subject: [PATCH] Issue #0001750: --- application/views/default/scripts/saisie/lien.phtml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/application/views/default/scripts/saisie/lien.phtml b/application/views/default/scripts/saisie/lien.phtml index 45eb2d4a3..871722ee0 100644 --- a/application/views/default/scripts/saisie/lien.phtml +++ b/application/views/default/scripts/saisie/lien.phtml @@ -272,6 +272,13 @@ $('input[name=PDetention]').on('blur', function(e){ } }); +$('input[name=PDetention]').keypress(function(event){ + if (event.which ==13) + { + $('.ui-button:contains("Valider")').click(); + } +}); + $('#dialog').dialog({ buttons: [ { text: "Valider", click: function() { if ($('input[name=PDetention]').val()>100){