mirror of
https://github.com/grocy/grocy.git
synced 2026-04-09 14:06:16 +02:00
scoping: Fix viewjs jQuery proxy
This commit is contained in:
parent
438a559897
commit
9afed0c007
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope('[data-toggle="collapse-next"]').on("click", function(e)
|
$scope('[data-toggle="collapse-next"]').on("click", function(e)
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("barcodescanner");
|
Grocy.Use("barcodescanner");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var batteriesTable = $scope('#batteries-table').DataTable({
|
var batteriesTable = $scope('#batteries-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var batteriesJournalTable = $scope('#batteries-journal-table').DataTable({
|
var batteriesJournalTable = $scope('#batteries-journal-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var batterycard = Grocy.Use("batterycard");
|
var batterycard = Grocy.Use("batterycard");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function batteryformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var batterycard = Grocy.Use("batterycard");
|
var batterycard = Grocy.Use("batterycard");
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@ function calendarView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
$viewport = $(scope);
|
$viewport = $(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var choresTable = $scope('#chores-table').DataTable({
|
var choresTable = $scope('#chores-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var choresJournalTable = $scope('#chores-journal-table').DataTable({
|
var choresJournalTable = $scope('#chores-journal-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var chorecard = Grocy.Use("chorecard");
|
var chorecard = Grocy.Use("chorecard");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var chorecard = Grocy.Use("chorecard");
|
var chorecard = Grocy.Use("chorecard");
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ function consumeView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productamountpicker = Grocy.Use("productamountpicker");
|
var productamountpicker = Grocy.Use("productamountpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function equipmentView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var equipmentTable = $scope('#equipment-table').DataTable({
|
var equipmentTable = $scope('#equipment-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ function equipmentformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function inventoryView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var dt1 = Grocy.Use("datetimepicker");
|
var dt1 = Grocy.Use("datetimepicker");
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
var top = scope != null ? $(scope) : $(document);
|
var top = scope != null ? $(scope) : $(document);
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
top.on("click", ".print-all-locations-button", function(e)
|
top.on("click", ".print-all-locations-button", function(e)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function locationformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var locationsTable = $scope('#locations-table').DataTable({
|
var locationsTable = $scope('#locations-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope('#username').focus();
|
$scope('#username').focus();
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function manageapikeysView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var apiKeysTable = $scope('#apikeys-table').DataTable({
|
var apiKeysTable = $scope('#apikeys-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ function mealplanView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ function productbarcodeformView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use('barcodescanner');
|
Grocy.Use('barcodescanner');
|
||||||
|
|
|
||||||
|
|
@ -7,7 +7,7 @@ function productformView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function productgroupformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var groupsTable = $scope('#productgroups-table').DataTable({
|
var groupsTable = $scope('#productgroups-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productsTable = $scope('#products-table').DataTable({
|
var productsTable = $scope('#products-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ function purchaseView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var datetimepicker = Grocy.Use("datetimepicker");
|
var datetimepicker = Grocy.Use("datetimepicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function quantityunitconversionformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function quantityunitformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var quantityUnitsTable = $scope('#quantityunits-table').DataTable({
|
var quantityUnitsTable = $scope('#quantityunits-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@ function recipeformView(Grocy, scope = null)
|
||||||
var top = scope != null ? $(scope) : $(document);
|
var top = scope != null ? $(scope) : $(document);
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function recipeposformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
var top = scope != null ? $(scope) : $(document)
|
var top = scope != null ? $(scope) : $(document)
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function recipessettingsView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BoolVal(Grocy.UserSettings.recipe_ingredients_group_by_product_group))
|
if (BoolVal(Grocy.UserSettings.recipe_ingredients_group_by_product_group))
|
||||||
|
|
|
||||||
|
|
@ -12,7 +12,7 @@ function shoppinglistView(Grocy, scope = null)
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("calendarcard");
|
Grocy.Use("calendarcard");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function shoppinglistformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function shoppinglistitemformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productamountpicker = Grocy.Use("productamountpicker");
|
var productamountpicker = Grocy.Use("productamountpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function shoppinglistsettingsView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled))
|
if (BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled))
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function shoppinglocationformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var locationsTable = $scope('#shoppinglocations-table').DataTable({
|
var locationsTable = $scope('#shoppinglocations-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productcard = Grocy.Use("productcard");
|
var productcard = Grocy.Use("productcard");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function stockentryformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var datetimepicker = Grocy.Use("datetimepicker");
|
var datetimepicker = Grocy.Use("datetimepicker");
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
var top = scope != null ? $(scope) : $(document);
|
var top = scope != null ? $(scope) : $(document);
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var stockJournalTable = $scope('#stock-journal-table').DataTable({
|
var stockJournalTable = $scope('#stock-journal-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var journalSummaryTable = $scope('#stock-journal-summary-table').DataTable({
|
var journalSummaryTable = $scope('#stock-journal-summary-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
var top = scope != null ? $(scope) : $(document);
|
var top = scope != null ? $(scope) : $(document);
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productcard = Grocy.Use("productcard");
|
var productcard = Grocy.Use("productcard");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function stocksettingsView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var categoriesTable = $scope('#taskcategories-table').DataTable({
|
var categoriesTable = $scope('#taskcategories-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function taskcategoryformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function taskformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var datetimepicker = Grocy.Use("datetimepicker");
|
var datetimepicker = Grocy.Use("datetimepicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
|
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var tasksTable = $scope('#tasks-table').DataTable({
|
var tasksTable = $scope('#tasks-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function transferView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var productpicker = Grocy.Use("productpicker");
|
var productpicker = Grocy.Use("productpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userentitiesTable = $scope('#userentities-table').DataTable({
|
var userentitiesTable = $scope('#userentities-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function userentityformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope('#save-userentity-button').on('click', function(e)
|
$scope('#save-userentity-button').on('click', function(e)
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function userfieldformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
Grocy.Use("numberpicker");
|
Grocy.Use("numberpicker");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfieldsTable = $scope('#userfields-table').DataTable({
|
var userfieldsTable = $scope('#userfields-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@ function userobjectformView(Grocy, scope = null)
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userfields = Grocy.Use("userfieldsform");
|
var userfields = Grocy.Use("userfieldsform");
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var userobjectsTable = $scope('#userobjects-table').DataTable({
|
var userobjectsTable = $scope('#userobjects-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope('input.permission-cb').click(
|
$scope('input.permission-cb').click(
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
var usersTable = $scope('#users-table').DataTable({
|
var usersTable = $scope('#users-table').DataTable({
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
var $scope = $;
|
var $scope = $;
|
||||||
if (scope != null)
|
if (scope != null)
|
||||||
{
|
{
|
||||||
$scope = $(scope).find;
|
$scope = (scope) => $(scope).find(scope);
|
||||||
}
|
}
|
||||||
|
|
||||||
$scope("#locale").val(Grocy.UserSettings.locale);
|
$scope("#locale").val(Grocy.UserSettings.locale);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user