Added a new config option for energy unit display (closes #2109)

This commit is contained in:
Bernd Bestel
2023-02-05 15:55:45 +01:00
parent 0bd698c968
commit b64d726c42
8 changed files with 17 additions and 11 deletions

View File

@@ -161,7 +161,7 @@ $('.input-group-qu').on('change', function(e)
{
$("#tare_weight_qu_info").text($("#qu_id_stock option:selected").text());
$("#quick_consume_qu_info").text($("#qu_id_stock option:selected").text());
$("#energy_qu_info").text($("#qu_id_stock option:selected").text());
$("#energy_qu_info").text(Grocy.EnergyUnit + " / " + $("#qu_id_stock option:selected").text());
Grocy.FrontendHelpers.ValidateForm('product-form');
});