Fix charge/retrait/edition essaye de compter directement la commande

This commit is contained in:
Aurélien Delobelle 2016-09-03 19:04:49 +02:00
parent 0c210aa48c
commit 6fd07ee6f2

View file

@ -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; }