grocy/js/viewjs/recipessettings.js
Katharina Bogad 2fbcefa8fd viewjs: scoped jquery
Most instances of $ have been replaced by $scope.
2021-06-23 15:00:53 +02:00

20 lines
417 B
JavaScript

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