mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
20 lines
417 B
JavaScript
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 |