From 6fd07ee6f2a1300c784f681f433162a99d343490 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Delobelle?= Date: Sat, 3 Sep 2016 19:04:49 +0200 Subject: [PATCH] Fix charge/retrait/edition essaye de compter directement la commande --- kfet/templates/kfet/kpsul.html | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/kfet/templates/kfet/kpsul.html b/kfet/templates/kfet/kpsul.html index 23840ca0..bd6ccb6c 100644 --- a/kfet/templates/kfet/kpsul.html +++ b/kfet/templates/kfet/kpsul.html @@ -839,8 +839,10 @@ $(document).ready(function() { onOpen: function() { var that = this this.$content.find('input').on('keydown', function(e) { - if (e.keyCode == 13) + if (e.keyCode == 13) { + e.preventDefault(); that.$confirmButton.click(); + } }); }, onClose: function() { this._lastFocused = articleSelect; } @@ -864,8 +866,10 @@ $(document).ready(function() { onOpen: function() { var that = this this.$content.find('input').on('keydown', function(e) { - if (e.keyCode == 13) + if (e.keyCode == 13) { + e.preventDefault(); that.$confirmButton.click(); + } }); }, onClose: function() { this._lastFocused = articleSelect; } @@ -1025,8 +1029,10 @@ $(document).ready(function() { onOpen: function() { var that = this this.$content.find('input[name=amount]').on('keydown', function(e) { - if (e.keyCode == 13) + if (e.keyCode == 13) { + e.preventDefault(); that.$confirmButton.click(); + } }); }, onClose: function() { this._lastFocused = triInput; }