Revert "Refresh product/chore/battery card only when actually visible"

This reverts commit c934bfb7b383fa1b3014372640312a0dd93fac46.
This commit is contained in:
Bernd Bestel 2023-01-04 20:06:19 +01:00
parent f057ae7e06
commit 0c8e8cab97
No known key found for this signature in database
GPG Key ID: 71BD34C0D4891300
3 changed files with 0 additions and 15 deletions

View File

@ -2,11 +2,6 @@ Grocy.Components.BatteryCard = {};
Grocy.Components.BatteryCard.Refresh = function(batteryId)
{
if (!$(".batterycard").is(":visible"))
{
return;
}
Grocy.Api.Get('batteries/' + batteryId,
function(batteryDetails)
{

View File

@ -2,11 +2,6 @@ Grocy.Components.ChoreCard = {};
Grocy.Components.ChoreCard.Refresh = function(choreId)
{
if (!$(".chorecard").is(":visible"))
{
return;
}
Grocy.Api.Get('chores/' + choreId,
function(choreDetails)
{

View File

@ -2,11 +2,6 @@ Grocy.Components.ProductCard = {};
Grocy.Components.ProductCard.Refresh = function(productId)
{
if (!$(".productcard").is(":visible"))
{
return;
}
Grocy.Api.Get('stock/products/' + productId,
function(productDetails)
{