mirror of
https://github.com/grocy/grocy.git
synced 2025-09-29 19:12:24 +00:00
Implemented browser barcode scanning (closes #102)
This commit is contained in:
@@ -191,12 +191,12 @@ $("#consume_product_on_execution").on("click", function()
|
||||
{
|
||||
if (this.checked)
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetInputElement().removeAttr("disabled");
|
||||
Grocy.Components.ProductPicker.Enable();
|
||||
$("#product_amount").removeAttr("disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
Grocy.Components.ProductPicker.GetInputElement().attr("disabled", "");
|
||||
Grocy.Components.ProductPicker.Disable();
|
||||
$("#product_amount").attr("disabled", "");
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user