mirror of
https://github.com/grocy/grocy.git
synced 2025-08-18 03:25:50 +00:00
Revert "Refresh product/chore/battery card only when actually visible"
This reverts commit c934bfb7b3
.
This commit is contained in:
@@ -2,11 +2,6 @@ Grocy.Components.BatteryCard = {};
|
|||||||
|
|
||||||
Grocy.Components.BatteryCard.Refresh = function(batteryId)
|
Grocy.Components.BatteryCard.Refresh = function(batteryId)
|
||||||
{
|
{
|
||||||
if (!$(".batterycard").is(":visible"))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Grocy.Api.Get('batteries/' + batteryId,
|
Grocy.Api.Get('batteries/' + batteryId,
|
||||||
function(batteryDetails)
|
function(batteryDetails)
|
||||||
{
|
{
|
||||||
|
@@ -2,11 +2,6 @@ Grocy.Components.ChoreCard = {};
|
|||||||
|
|
||||||
Grocy.Components.ChoreCard.Refresh = function(choreId)
|
Grocy.Components.ChoreCard.Refresh = function(choreId)
|
||||||
{
|
{
|
||||||
if (!$(".chorecard").is(":visible"))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Grocy.Api.Get('chores/' + choreId,
|
Grocy.Api.Get('chores/' + choreId,
|
||||||
function(choreDetails)
|
function(choreDetails)
|
||||||
{
|
{
|
||||||
|
@@ -2,11 +2,6 @@ Grocy.Components.ProductCard = {};
|
|||||||
|
|
||||||
Grocy.Components.ProductCard.Refresh = function(productId)
|
Grocy.Components.ProductCard.Refresh = function(productId)
|
||||||
{
|
{
|
||||||
if (!$(".productcard").is(":visible"))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Grocy.Api.Get('stock/products/' + productId,
|
Grocy.Api.Get('stock/products/' + productId,
|
||||||
function(productDetails)
|
function(productDetails)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user