mirror of
https://github.com/grocy/grocy.git
synced 2026-03-28 07:39:25 +01:00
Revert "Refresh product/chore/battery card only when actually visible"
This reverts commit c934bfb7b3.
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…
Reference in New Issue
Block a user