Properly display/round recipe ingredients amounts (closes #230)

This commit is contained in:
Bernd Bestel
2019-05-03 19:36:27 +02:00
parent dfd501c515
commit 24680154d8
2 changed files with 7 additions and 2 deletions

View File

@@ -487,6 +487,11 @@ $(".locale-number-format[data-format='currency']").each(function ()
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { style: "currency", currency: Grocy.Currency }));
});
$(".locale-number-format[data-format='quantity-amount']").each(function ()
{
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 3 }));
});
$(document).on("click", ".easy-link-copy-textbox", function()
{
$(this).select();