mirror of
https://github.com/grocy/grocy.git
synced 2026-04-04 03:46:16 +02:00
Make clear than picking a specific stock item on consume always means an amount of 1
This commit is contained in:
parent
2ff5faacc0
commit
e021c93d22
|
|
@ -224,6 +224,7 @@ $("#use_specific_stock_entry").on("change", function()
|
||||||
{
|
{
|
||||||
$("#specific_stock_entry").removeAttr("disabled");
|
$("#specific_stock_entry").removeAttr("disabled");
|
||||||
$("#amount").attr("disabled", "");
|
$("#amount").attr("disabled", "");
|
||||||
|
$("#amount").val(1);
|
||||||
$("#amount").removeAttr("required");
|
$("#amount").removeAttr("required");
|
||||||
$("#specific_stock_entry").attr("required", "");
|
$("#specific_stock_entry").attr("required", "");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user