Commit e928f1f2 by Damien Moulard

reception: force validate edition when enter pressed

parent 10f5d6e7
......@@ -891,7 +891,7 @@ function editProductInfo (productToEdit, value = null) {
}
// Validate product edition
function validateEdition(form) {
function validateEdition(form = null) {
if (editing_product != null) {
if (editProductInfo(editing_product)) {
clearLineEdition();
......@@ -1643,6 +1643,13 @@ $(document).ready(function() {
}
});
$("#edition_input").keypress(function(event) {
// Force validation when enter pressed in edition
if (event.keyCode == 13 || event.which == 13) {
validateEdition();
}
});
// Barcode reader
$(document).pos();
$(document).on('scan.pos.barcode', function(event) {
......
  • Thanks for sharing the complete bug-free code here that is acknowledging. I hope after the information the various people would be able to grab the best dissertation help and boost the website performance. Thumbs up for your tremendous help here please continue sharing more.

Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment