mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 08:34:48 +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)
|
||||
{
|
||||
if (!$(".batterycard").is(":visible"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Grocy.Api.Get('batteries/' + batteryId,
|
||||
function(batteryDetails)
|
||||
{
|
||||
|
Reference in New Issue
Block a user