Various minor usability refinements

This commit is contained in:
Bernd Bestel
2025-01-16 21:34:01 +01:00
parent b0dded1346
commit ded742a7c1
11 changed files with 38 additions and 11 deletions

View File

@@ -335,7 +335,7 @@ function RefreshProductRow(productId)
}
else
{
animateCSS("#product-" + productId + "-row td:not(:first)", "shake");
animateCSS("#product-" + productId + "-row td:not(:first)", "flash");
$('#product-' + productId + '-qu-name').text(__n(result.stock_amount, result.quantity_unit_stock.name, result.quantity_unit_stock.name_plural, true));
$('#product-' + productId + '-amount').text(result.stock_amount);
@@ -359,6 +359,11 @@ function RefreshProductRow(productId)
$(".product-consume-button[data-product-id='" + productId + "']").addClass("disabled");
$(".product-open-button[data-product-id='" + productId + "']").addClass("disabled");
}
else
{
$(".product-consume-button[data-product-id='" + productId + "']").removeClass("disabled");
$(".product-open-button[data-product-id='" + productId + "']").removeClass("disabled");
}
}
$('#product-' + productId + '-next-due-date').text(result.next_due_date);