From 3a1ec485f93d18157c7e8293bec2e242e203076b Mon Sep 17 00:00:00 2001 From: Frank Weinberg Date: Thu, 8 Sep 2022 19:07:45 +0200 Subject: [PATCH] Fix total penalty count --- html/components/plt-input.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/html/components/plt-input.js b/html/components/plt-input.js index e0fc3e16..beddabe5 100755 --- a/html/components/plt-input.js +++ b/html/components/plt-input.js @@ -245,7 +245,7 @@ function preparePltInputTable(element, gameId, teamId, mode, statsbookPeriod, al if (penaltyPeriod === statsbookPeriod) { penaltyBox.text(code); } else { - penaltyBox.html(''); //   would confuse the forumla to calculate number of penalties. + penaltyBox.html(''); //   would confuse the formula to calculate number of penalties. } } else { penaltyBox.text(code); @@ -305,7 +305,7 @@ function preparePltInputTable(element, gameId, teamId, mode, statsbookPeriod, al tbody.children('.Skater[id=' + s + ']').toggleClass('Warn2', cnt === limit - 1 && !fo_exp); tbody.children('.Skater[id=' + s + ']').toggleClass('Warn3', cnt >= limit || fo_exp); - if (p !== 0) { + if (p != 0) { if (oldId == null && newId != null) { totalPenaltyCount++; } else if (oldId != null && newId == null) {