mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 19:37:12 +00:00
Added a new field calories for products (closes #268)
This commit is contained in:
@@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user