Skip to content
Snippets Groups Projects
Commit 9f298a6c authored by Taddeüs Kroes's avatar Taddeüs Kroes
Browse files

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

parent 5289d9e2
No related branches found
No related tags found
No related merge requests found
......@@ -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'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment