Fixed columns not updating correctly

This commit is contained in:
José Carlos Cuevas 2019-04-15 14:49:05 +02:00
parent 8860bf29d9
commit a02de0caf4

View file

@ -23,7 +23,7 @@ var updatePoints = function () {
let header = column.getElementsByTagName('h4')[0];
let column_points = header.getElementsByClassName('column-points');
if (column_points.length > 0) {
column_points[0].text = total;
column_points[0].innerHTML = total;
} else {
header.innerHTML = '<span class="column-points" style="background-color: #0366d6; color: #fff; padding: 0.1rem;">' + total + '</span>' + header.innerHTML;
}