From d803a31c47b9b4d7c628cec47b21b3f447320515 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Tue, 4 Dec 2018 13:33:07 +0100 Subject: [PATCH] Debugging 1 --- Site/Pages/v5/Ledgers/EndOfMonth.aspx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx b/Site/Pages/v5/Ledgers/EndOfMonth.aspx index 05af89bd..e214f5b7 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx @@ -130,9 +130,14 @@ $(this).addClass('action-list-item-disabled'); var groupId = $(this).attr['data-group']; - if ($(".action-list-item:not(.action-list-item-disabled)[data-group='" + groupId + "']").length == 0) // no further actions in this group enabled + var selector = ".action-list-item:not(.action-list-item-disabled)[data-group='" + groupId + "']"; + console.log(selector); + var groupActionsRemaining = $(selector); + console.log(groupActionsRemaining); + if (groupActionsRemaining.length == 0) // no further actions in this group enabled { // mark the group as completed + console.log("marking as completed"); $(".group-status-icon[data-group='" + groupId + "']").fadeIn(); } });