Added a new field calories for products (closes #268)

This commit is contained in:
Bernd Bestel
2019-09-20 20:06:24 +02:00
parent 1ae5f552d1
commit c228126c3a
8 changed files with 144 additions and 5 deletions

View File

@@ -519,6 +519,11 @@ function RefreshLocaleNumberDisplay()
{
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 3 }));
});
$(".locale-number-format[data-format='generic']").each(function ()
{
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 2 }));
});
}
RefreshLocaleNumberDisplay();