mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
This commit's contents were auto-generated. They wrap all viewjs
in functions and define a common prologue.
New file contents:
```js
function VIEWNAMEView(Grocy, scope = null)
{
var $scope = $;
if(scope != null)
{
$scope = $(scope).find;
}
// original contents indented with \t
}
```
24 lines
535 B
JavaScript
24 lines
535 B
JavaScript
function shoppinglistsettingsView(Grocy, scope = null)
|
|
{
|
|
var $scope = $;
|
|
if (scope != null)
|
|
{
|
|
$scope = $(scope).find;
|
|
}
|
|
|
|
import { BoolVal } from '../helpers/extensions';
|
|
|
|
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);
|
|
}
|
|
|
|
RefreshLocaleNumberInput();
|
|
|
|
}
|