grocy/js/viewjs/recipessettings.js
Katharina Bogad 2a7fbbecf8 Fix bugs
2021-06-24 22:18:19 +02:00

23 lines
444 B
JavaScript

import { BoolVal } from '../helpers/extensions';
function recipessettingsView(Grocy, scope = null)
{
var $scope = $;
if (scope != null)
{
$scope = (selector) => $(scope).find(selector);
}
if (BoolVal(Grocy.UserSettings.recipe_ingredients_group_by_product_group))
{
$scope("#recipe_ingredients_group_by_product_group").prop("checked", true);
}
RefreshLocaleNumberInput();
}
window.recipessettingsView = recipessettingsView