Commit 6a22598b by Félicie

press enter different

parent c7f8a98b
Pipeline #1642 passed with stage
in 1 minute 29 seconds
...@@ -1625,12 +1625,17 @@ function display_products(params) { ...@@ -1625,12 +1625,17 @@ function display_products(params) {
top: $(window).scrollTop() - $("#suppliers_container").outerHeight() top: $(window).scrollTop() - $("#suppliers_container").outerHeight()
}); });
} }
} else if (e.which == 13, 40) { } else if (e.which == 40) {
e.preventDefault(); e.preventDefault();
// On arrow down pressed, focus previous row input // On arrow down pressed, focus previous row input
$(this).closest("tr").next().find(".product_qty_input").focus(); $(this).closest("tr").next().find(".product_qty_input").focus();
} } else if (e.which == 13) {
e.preventDefault();
// On arrow down pressed, focus previous row input
$(this).closest("tr").next().find(".product_qty_input").focus();
}
}); });
// Associate product to supplier on click on 'X' in the table // Associate product to supplier on click on 'X' in the table
......
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