Commit 9f298a6c authored by Taddeüs Kroes's avatar Taddeüs Kroes

Bugfix: subtotals were not being displayed because of incorrect score cell counting

parent 5289d9e2
......@@ -6,8 +6,8 @@ if table.classList.contains 'match-editable'
match_total = table.querySelector '.match-total'
match_avg = table.querySelector '.match-avg'
w = table.querySelectorAll('tbody input[type=number]').length
h = inputs.length / w
h = table.querySelectorAll('tbody tr').length - 1
w = inputs.length / h
scores = []
sub = (row) -> rows[row].querySelector '.row-total'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment