Commit a6493b55 by François C.

Merge branch 'dev_cooperatic' of…

Merge branch 'dev_cooperatic' of https://gl.cooperatic.fr/cooperatic-foodcoops/third-party into dev_cooperatic
parents cb6a66fe 96190610
Pipeline #1651 passed with stage
in 1 minute 30 seconds
......@@ -227,7 +227,7 @@ function check_products_data() {
if (suppliers_id.length > 0) {
$.notify(
"Vérfication des informations produits...",
"Vérification des informations produits...",
{
globalPosition:"top left",
className: "info"
......@@ -1613,6 +1613,7 @@ function display_products(params) {
// On arrow up pressed, focus next row input
let next_input = $(this).closest("tr").prev().find(".product_qty_input");
next_input;
next_input.focus();
// Scroll to a position where the target input is not hidden by the sticky suppliers container
......@@ -1632,6 +1633,12 @@ function display_products(params) {
// On arrow down pressed, focus previous row input
$(this).closest("tr").next().find(".product_qty_input").focus();
} else if (e.which == 13) {
e.preventDefault();
// On enter pressed, focus previous row input
$(this).closest("tr").next().find(".product_qty_input").focus();
}
});
......
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