This commit is contained in:
Louis Vézina 2020-08-03 11:01:09 -04:00
parent 8efd49febe
commit aa1173d6b7
1 changed files with 8 additions and 1 deletions

View File

@ -391,8 +391,15 @@
r.style.display = collapsed ? 'none' : '';
});
if (collapsed) {
var chevron_icon = '<i class="fas fa-chevron-circle-right"></i>';
} else {
var chevron_icon = '<i class="fas fa-chevron-circle-down"></i>';
}
return $('<tr/>')
.append('<td colspan=' + rows.columns()[0].length + '>Season ' + group + '</td>')
.append('<td colspan=' + rows.columns()[0].length + '>Season ' + group + ' ' + chevron_icon + '</td>')
.attr('data-name', group)
.toggleClass('collapsed', collapsed);
}