mirror of
https://github.com/grocy/grocy.git
synced 2025-10-12 16:44:55 +00:00
Refresh product/chore/battery card only when actually visible
This commit is contained in:
@@ -2,6 +2,11 @@ Grocy.Components.ChoreCard = {};
|
||||
|
||||
Grocy.Components.ChoreCard.Refresh = function(choreId)
|
||||
{
|
||||
if (!$(".chorecard").is(":visible"))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Grocy.Api.Get('chores/' + choreId,
|
||||
function(choreDetails)
|
||||
{
|
||||
|
Reference in New Issue
Block a user