Parcourir la source

[Administration] Distributions > formulaire commande : raccourci "Entrée" pour passer à la ligne du dessous #958

feature/souke
Guillaume il y a 1 an
Parent
révision
854bf8daa9
1 fichiers modifiés avec 8 ajouts et 0 suppressions
  1. +8
    -0
      backend/web/js/vuejs/distribution-index.js

+ 8
- 0
backend/web/js/vuejs/distribution-index.js Voir le fichier

@@ -438,6 +438,14 @@ var app = new Vue({
Vue.set(app.ordersUpdate[app.getOrderUpdateKey()], 'id_user', idUser);
}
});

// Passage à la ligne du dessous quand on appuie sur "Entrée"
$('.modal-form-order .input-quantity').keypress(function(e) {
if(e.which == 13) {
$(this).parent().parent().parent()
.next().find('.input-quantity').focus();
}
});
},500);
},
getOrderUpdateKey: function() {

Chargement…
Annuler
Enregistrer