mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Implemented tare weight handling (closes #132)
This commit is contained in:
@@ -169,6 +169,8 @@ $('.input-group-qu').on('change', function(e)
|
||||
$('#qu-conversion-info').addClass('d-none');
|
||||
}
|
||||
|
||||
$("#tare_weight_qu_info").text($("#qu_id_stock option:selected").text());
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm('product-form');
|
||||
});
|
||||
|
||||
@@ -199,6 +201,20 @@ $('#product-form input').keydown(function(event)
|
||||
}
|
||||
});
|
||||
|
||||
$("#enable_tare_weight_handling").on("click", function()
|
||||
{
|
||||
if (this.checked)
|
||||
{
|
||||
$("#tare_weight").removeAttr("disabled");
|
||||
}
|
||||
else
|
||||
{
|
||||
$("#tare_weight").attr("disabled", "");
|
||||
}
|
||||
|
||||
Grocy.FrontendHelpers.ValidateForm("product-form");
|
||||
});
|
||||
|
||||
Grocy.DeleteProductPictureOnSave = false;
|
||||
$('#delete-current-product-picture-button').on('click', function (e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user