mirror of
https://github.com/grocy/grocy.git
synced 2025-08-20 12:20:22 +00:00
Make it possible to round up shopping list and recipe ingredient amounts (closes #902, closes #2644)
This commit is contained in:
@@ -219,7 +219,7 @@ $(document).on('click', '.recipe-shopping-list', function(e)
|
||||
Grocy.Api.Post('recipes/' + objectId + '/add-not-fulfilled-products-to-shoppinglist', { "excludedProductIds": excludedProductIds },
|
||||
function(result)
|
||||
{
|
||||
window.location.href = U('/recipes');
|
||||
window.location.reload();
|
||||
},
|
||||
function(xhr)
|
||||
{
|
||||
|
@@ -8,6 +8,11 @@ if (BoolVal(Grocy.UserSettings.shopping_list_show_calendar))
|
||||
$("#shopping_list_show_calendar").prop("checked", true);
|
||||
}
|
||||
|
||||
if (BoolVal(Grocy.UserSettings.shopping_list_round_up))
|
||||
{
|
||||
$("#shopping_list_round_up").prop("checked", true);
|
||||
}
|
||||
|
||||
if (BoolVal(Grocy.UserSettings.shopping_list_auto_add_below_min_stock_amount))
|
||||
{
|
||||
$("#shopping_list_auto_add_below_min_stock_amount").prop("checked", true);
|
||||
|
Reference in New Issue
Block a user