mirror of
https://github.com/grocy/grocy.git
synced 2026-04-05 12:26:15 +02:00
scoping: Fix viewjs jQuery proxy
This commit is contained in:
parent
438a559897
commit
9afed0c007
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("barcodescanner");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var batteriesTable = $scope('#batteries-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var batteriesJournalTable = $scope('#batteries-journal-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var batterycard = Grocy.Use("batterycard");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var batterycard = Grocy.Use("batterycard");
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ function calendarView(Grocy, scope = null)
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
$viewport = $(scope);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var choresTable = $scope('#chores-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var choresJournalTable = $scope('#chores-journal-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var chorecard = Grocy.Use("chorecard");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var chorecard = Grocy.Use("chorecard");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var locationsTable = $scope('#locations-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
$scope('#username').focus();
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ function mealplanView(Grocy, scope = null)
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function productbarcodeformView(Grocy, scope = null)
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use('barcodescanner');
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ function productformView(Grocy, scope = null)
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var groupsTable = $scope('#productgroups-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var productsTable = $scope('#products-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var quantityUnitsTable = $scope('#quantityunits-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
var top = scope != null ? $(scope) : $(document)
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ function shoppinglistView(Grocy, scope = null)
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("calendarcard");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var locationsTable = $scope('#shoppinglocations-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var productcard = Grocy.Use("productcard");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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({
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ function stocksettingsView(Grocy, scope = null)
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var categoriesTable = $scope('#taskcategories-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var tasksTable = $scope('#tasks-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
Grocy.Use("numberpicker");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var userentitiesTable = $scope('#userentities-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var userfieldsTable = $scope('#userfields-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var userfields = Grocy.Use("userfieldsform");
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var userobjectsTable = $scope('#userobjects-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
$scope('input.permission-cb').click(
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
var usersTable = $scope('#users-table').DataTable({
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
var $scope = $;
|
||||
if (scope != null)
|
||||
{
|
||||
$scope = $(scope).find;
|
||||
$scope = (scope) => $(scope).find(scope);
|
||||
}
|
||||
|
||||
$scope("#locale").val(Grocy.UserSettings.locale);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user