mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 01:32:38 +00:00
31 lines
930 B
JavaScript
31 lines
930 B
JavaScript
if (BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled))
|
|
{
|
|
$("#shopping-list-to-stock-workflow-auto-submit-when-prefilled").prop("checked", true);
|
|
}
|
|
|
|
if (BoolVal(Grocy.UserSettings.shopping_list_show_calendar))
|
|
{
|
|
$("#shopping_list_show_calendar").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);
|
|
}
|
|
|
|
$("#shopping_list_auto_add_below_min_stock_amount_list_id").val(Grocy.UserSettings.shopping_list_auto_add_below_min_stock_amount_list_id);
|
|
|
|
$("#shopping_list_auto_add_below_min_stock_amount").on("click", function()
|
|
{
|
|
if (this.checked)
|
|
{
|
|
$("#shopping_list_auto_add_below_min_stock_amount_list_id").removeAttr("disabled");
|
|
}
|
|
else
|
|
{
|
|
$("#shopping_list_auto_add_below_min_stock_amount_list_id").attr("disabled", "");
|
|
}
|
|
});
|
|
|
|
RefreshLocaleNumberInput();
|