mirror of
https://github.com/grocy/grocy.git
synced 2025-04-29 17:45:39 +00:00
Revert "Refresh product/chore/battery card only when actually visible"
This reverts commit c934bfb7b383fa1b3014372640312a0dd93fac46.
This commit is contained in:
parent
f057ae7e06
commit
0c8e8cab97
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user