diff --git a/js/viewjs/consume.js b/js/viewjs/consume.js index 07470df9..19ad3c15 100644 --- a/js/viewjs/consume.js +++ b/js/viewjs/consume.js @@ -501,7 +501,7 @@ function consumeView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#consume-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#consume-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/equipmentform.js b/js/viewjs/equipmentform.js index f290a8ff..93d3f823 100644 --- a/js/viewjs/equipmentform.js +++ b/js/viewjs/equipmentform.js @@ -132,7 +132,7 @@ function equipmentformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#equipment-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#equipment-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/inventory.js b/js/viewjs/inventory.js index 7803f26a..b534dc21 100644 --- a/js/viewjs/inventory.js +++ b/js/viewjs/inventory.js @@ -295,7 +295,7 @@ function inventoryView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#inventory-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#inventory-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/locationform.js b/js/viewjs/locationform.js index 1a30fb89..ba2cc024 100644 --- a/js/viewjs/locationform.js +++ b/js/viewjs/locationform.js @@ -84,7 +84,7 @@ function locationformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#location-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#location-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/mealplan.js b/js/viewjs/mealplan.js index 2b904743..80c02f41 100644 --- a/js/viewjs/mealplan.js +++ b/js/viewjs/mealplan.js @@ -432,7 +432,7 @@ function mealplanView(Grocy, scope = null) return; } - if ($scope('#add-recipe-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-recipe-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -474,7 +474,7 @@ function mealplanView(Grocy, scope = null) return; } - if ($scope('#add-note-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-note-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -520,7 +520,7 @@ function mealplanView(Grocy, scope = null) return; } - if ($scope('#add-product-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-product-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -567,7 +567,7 @@ function mealplanView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#add-recipe-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-recipe-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -584,7 +584,7 @@ function mealplanView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#add-product-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-product-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -601,7 +601,7 @@ function mealplanView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#add-recipe-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#add-recipe-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/productbarcodeform.js b/js/viewjs/productbarcodeform.js index c3e8faf1..4f8350a9 100644 --- a/js/viewjs/productbarcodeform.js +++ b/js/viewjs/productbarcodeform.js @@ -86,7 +86,7 @@ function productbarcodeformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#barcode-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#barcode-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/productform.js b/js/viewjs/productform.js index f75261df..b0e7b79c 100644 --- a/js/viewjs/productform.js +++ b/js/viewjs/productform.js @@ -217,7 +217,7 @@ function productformView(Grocy, scope = null) $scope(".input-group-qu").trigger("change"); $scope("#product-form select").trigger("select"); - if ($scope('#product-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#product-form')[0].checkValidity() === false) //There is at least one validation error { $scope("#qu-conversion-add-button").addClass("disabled"); } @@ -226,7 +226,7 @@ function productformView(Grocy, scope = null) $scope("#qu-conversion-add-button").removeClass("disabled"); } - if ($scope('#product-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#product-form')[0].checkValidity() === false) //There is at least one validation error { $scope("#barcode-add-button").addClass("disabled"); } @@ -243,7 +243,7 @@ function productformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#product-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#product-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/productgroupform.js b/js/viewjs/productgroupform.js index ab1fe273..9767aeb4 100644 --- a/js/viewjs/productgroupform.js +++ b/js/viewjs/productgroupform.js @@ -70,7 +70,7 @@ function productgroupformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#product-group-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#product-group-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/quantityunitconversionform.js b/js/viewjs/quantityunitconversionform.js index 4f395118..8c298ee2 100644 --- a/js/viewjs/quantityunitconversionform.js +++ b/js/viewjs/quantityunitconversionform.js @@ -149,7 +149,7 @@ function quantityunitconversionformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#quconversion-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#quconversion-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/recipeform.js b/js/viewjs/recipeform.js index 3c0f8b97..cfd23504 100644 --- a/js/viewjs/recipeform.js +++ b/js/viewjs/recipeform.js @@ -128,7 +128,7 @@ function recipeformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#recipe-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#recipe-form')[0].checkValidity() === false) //There is at least one validation error { return false; } @@ -264,7 +264,7 @@ function recipeformView(Grocy, scope = null) return; } - if ($scope('#recipe-include-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#recipe-include-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/recipeposform.js b/js/viewjs/recipeposform.js index adea7665..afb10307 100644 --- a/js/viewjs/recipeposform.js +++ b/js/viewjs/recipeposform.js @@ -145,7 +145,7 @@ function recipeposformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#recipe-pos-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#recipe-pos-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/shoppinglistform.js b/js/viewjs/shoppinglistform.js index 43e9594d..0703fcd1 100644 --- a/js/viewjs/shoppinglistform.js +++ b/js/viewjs/shoppinglistform.js @@ -74,7 +74,7 @@ function shoppinglistformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#shopping-list-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#shopping-list-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/shoppinglistitemform.js b/js/viewjs/shoppinglistitemform.js index 8279e53a..cf3436f1 100644 --- a/js/viewjs/shoppinglistitemform.js +++ b/js/viewjs/shoppinglistitemform.js @@ -226,7 +226,7 @@ function shoppinglistitemformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#shoppinglist-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#shoppinglist-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/shoppinglocationform.js b/js/viewjs/shoppinglocationform.js index 0f45da07..617fc15a 100644 --- a/js/viewjs/shoppinglocationform.js +++ b/js/viewjs/shoppinglocationform.js @@ -84,7 +84,7 @@ function shoppinglocationformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#shoppinglocation-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#shoppinglocation-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/stockentryform.js b/js/viewjs/stockentryform.js index fa23743d..c715e6ff 100644 --- a/js/viewjs/stockentryform.js +++ b/js/viewjs/stockentryform.js @@ -81,7 +81,7 @@ function stockentryformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#stockentry-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#stockentry-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/taskcategoryform.js b/js/viewjs/taskcategoryform.js index f93744d7..9dd6c424 100644 --- a/js/viewjs/taskcategoryform.js +++ b/js/viewjs/taskcategoryform.js @@ -84,7 +84,7 @@ function taskcategoryformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#task-category-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#task-category-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/taskform.js b/js/viewjs/taskform.js index 157f0cf6..345add75 100644 --- a/js/viewjs/taskform.js +++ b/js/viewjs/taskform.js @@ -89,7 +89,7 @@ function taskformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#task-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#task-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/transfer.js b/js/viewjs/transfer.js index c443d7df..957c83b9 100644 --- a/js/viewjs/transfer.js +++ b/js/viewjs/transfer.js @@ -404,7 +404,7 @@ function transferView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#transfer-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#transfer-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/userentityform.js b/js/viewjs/userentityform.js index 2651f2e1..ef080f7b 100644 --- a/js/viewjs/userentityform.js +++ b/js/viewjs/userentityform.js @@ -82,7 +82,7 @@ function userentityformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#userentity-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#userentity-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/userfieldform.js b/js/viewjs/userfieldform.js index 5ad4acf2..ba8822f9 100644 --- a/js/viewjs/userfieldform.js +++ b/js/viewjs/userfieldform.js @@ -88,7 +88,7 @@ function userfieldformView(Grocy, scope = null) { event.preventDefault(); - if ($scope('#userfield-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#userfield-form')[0].checkValidity() === false) //There is at least one validation error { return false; } diff --git a/js/viewjs/userform.js b/js/viewjs/userform.js index 1f524b76..dac74c8d 100644 --- a/js/viewjs/userform.js +++ b/js/viewjs/userform.js @@ -113,7 +113,7 @@ { event.preventDefault(); - if ($scope('#user-form')[0].checkValidity()() === false) //There is at least one validation error + if ($scope('#user-form')[0].checkValidity() === false) //There is at least one validation error { return false; }