Finished first version of meal planning (for now closes #146)

This commit is contained in:
Bernd Bestel
2019-05-07 19:48:14 +02:00
parent 3f53919ddd
commit 8504eb9b38
9 changed files with 240 additions and 15 deletions

View File

@@ -482,15 +482,19 @@ $("#about-dialog-link").on("click", function()
});
});
$(".locale-number-format[data-format='currency']").each(function ()
function RefreshLocaleNumberDisplay()
{
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { style: "currency", currency: Grocy.Currency }));
});
$(".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 }));
});
$(".locale-number-format[data-format='quantity-amount']").each(function()
{
$(this).text(parseFloat($(this).text()).toLocaleString(undefined, { minimumFractionDigits: 0, maximumFractionDigits: 3 }));
});
}
RefreshLocaleNumberDisplay();
$(document).on("click", ".easy-link-copy-textbox", function()
{