Commit 50f4f29a by Damien Moulard

INV: fix input focus when product scanned

parent 707b2289
Pipeline #2294 passed with stage
in 1 minute 26 seconds
......@@ -285,8 +285,7 @@ function edit_event(clicked) {
* If qty is not null, it comes from barcode reading result
* */
function setLineEdition(item, qty) {
var edition_input = $('#edition_input'),
set_focus = true;
var edition_input = $('#edition_input');
editing_item = item;
$('#product_name').text(editing_item.name);
......@@ -308,13 +307,12 @@ function setLineEdition(item, qty) {
*/
editing_item.qty = qty;
edition_input.val(qty);
set_focus = false;
}
// If item is reprocessed, set input with value
if (editing_origin == 'processed') {
edition_input.val(editing_item.qty);
}
if (set_focus === true)
edition_input.focus();
// Make edition area blink when edition button clicked
......
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