scoping: Fix viewjs jQuery proxy

This commit is contained in:
Katharina Bogad 2021-06-24 00:11:44 +02:00
parent 438a559897
commit 9afed0c007
67 changed files with 67 additions and 67 deletions

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
$scope('[data-toggle="collapse-next"]').on("click", function(e)

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("barcodescanner");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var batteriesTable = $scope('#batteries-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var batteriesJournalTable = $scope('#batteries-journal-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var batterycard = Grocy.Use("batterycard");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function batteryformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var batterycard = Grocy.Use("batterycard");

View File

@ -21,7 +21,7 @@ function calendarView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
$viewport = $(scope);
}

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var choresTable = $scope('#chores-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var choresJournalTable = $scope('#chores-journal-table').DataTable({

View File

@ -5,7 +5,7 @@
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var chorecard = Grocy.Use("chorecard");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var chorecard = Grocy.Use("chorecard");

View File

@ -8,7 +8,7 @@ function consumeView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productamountpicker = Grocy.Use("productamountpicker");

View File

@ -5,7 +5,7 @@ function equipmentView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var equipmentTable = $scope('#equipment-table').DataTable({

View File

@ -6,7 +6,7 @@ function equipmentformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -5,7 +5,7 @@ function inventoryView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var dt1 = Grocy.Use("datetimepicker");

View File

@ -4,7 +4,7 @@
var top = scope != null ? $(scope) : $(document);
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
top.on("click", ".print-all-locations-button", function(e)

View File

@ -5,7 +5,7 @@ function locationformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var locationsTable = $scope('#locations-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
$scope('#username').focus();

View File

@ -5,7 +5,7 @@ function manageapikeysView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var apiKeysTable = $scope('#apikeys-table').DataTable({

View File

@ -18,7 +18,7 @@ function mealplanView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -7,7 +7,7 @@ function productbarcodeformView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use('barcodescanner');

View File

@ -7,7 +7,7 @@ function productformView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function productgroupformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var groupsTable = $scope('#productgroups-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productsTable = $scope('#products-table').DataTable({

View File

@ -6,7 +6,7 @@ function purchaseView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var datetimepicker = Grocy.Use("datetimepicker");

View File

@ -5,7 +5,7 @@ function quantityunitconversionformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function quantityunitformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var quantityUnitsTable = $scope('#quantityunits-table').DataTable({

View File

@ -6,7 +6,7 @@ function recipeformView(Grocy, scope = null)
var top = scope != null ? $(scope) : $(document);
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function recipeposformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@
var top = scope != null ? $(scope) : $(document)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function recipessettingsView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
if (BoolVal(Grocy.UserSettings.recipe_ingredients_group_by_product_group))

View File

@ -12,7 +12,7 @@ function shoppinglistView(Grocy, scope = null)
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("calendarcard");

View File

@ -5,7 +5,7 @@ function shoppinglistformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -5,7 +5,7 @@ function shoppinglistitemformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productamountpicker = Grocy.Use("productamountpicker");

View File

@ -5,7 +5,7 @@ function shoppinglistsettingsView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
if (BoolVal(Grocy.UserSettings.shopping_list_to_stock_workflow_auto_submit_when_prefilled))

View File

@ -5,7 +5,7 @@ function shoppinglocationformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var locationsTable = $scope('#shoppinglocations-table').DataTable({

View File

@ -5,7 +5,7 @@
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productcard = Grocy.Use("productcard");

View File

@ -5,7 +5,7 @@ function stockentryformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var datetimepicker = Grocy.Use("datetimepicker");

View File

@ -4,7 +4,7 @@
var top = scope != null ? $(scope) : $(document);
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var stockJournalTable = $scope('#stock-journal-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var journalSummaryTable = $scope('#stock-journal-summary-table').DataTable({

View File

@ -4,7 +4,7 @@
var top = scope != null ? $(scope) : $(document);
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productcard = Grocy.Use("productcard");

View File

@ -5,7 +5,7 @@ function stocksettingsView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var categoriesTable = $scope('#taskcategories-table').DataTable({

View File

@ -5,7 +5,7 @@ function taskcategoryformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -5,7 +5,7 @@ function taskformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var datetimepicker = Grocy.Use("datetimepicker");

View File

@ -5,7 +5,7 @@
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var tasksTable = $scope('#tasks-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -5,7 +5,7 @@ function transferView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var productpicker = Grocy.Use("productpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userentitiesTable = $scope('#userentities-table').DataTable({

View File

@ -5,7 +5,7 @@ function userentityformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
$scope('#save-userentity-button').on('click', function(e)

View File

@ -5,7 +5,7 @@ function userfieldformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
Grocy.Use("numberpicker");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfieldsTable = $scope('#userfields-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -5,7 +5,7 @@ function userobjectformView(Grocy, scope = null)
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userfields = Grocy.Use("userfieldsform");

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var userobjectsTable = $scope('#userobjects-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
$scope('input.permission-cb').click(

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
var usersTable = $scope('#users-table').DataTable({

View File

@ -3,7 +3,7 @@
var $scope = $;
if (scope != null)
{
$scope = $(scope).find;
$scope = (scope) => $(scope).find(scope);
}
$scope("#locale").val(Grocy.UserSettings.locale);