File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -246,9 +246,7 @@ function getHeartCol(row) {
246
246
247
247
function getTeamname ( row )
248
248
{
249
- var res = row . getAttribute ( "id" ) ;
250
- if ( res === null ) return res ;
251
- return res . replace ( / ^ t e a m : / , '' ) ;
249
+ return row . getAttribute ( "data-team-id" ) ;
252
250
}
253
251
254
252
function toggle ( id , show )
Original file line number Diff line number Diff line change 133
133
{% else %}
134
134
{% set color = score .team .category .color %}
135
135
{% endif %}
136
- <tr class="{{ classes | join(' ' ) }}" id="team: {{ score .team .teamid }}">
136
+ <tr class="{{ classes | join(' ' ) }}" data-team- id ="{{ score .team .teamid }}">
137
137
{% if enable_ranking %}
138
138
<td class="scorepl {{medalColor }}">
139
139
{# Only print rank when score is different from the previous team #}
379
379
{% else %}
380
380
{% set color = score .team .category .color %}
381
381
{% endif %}
382
- <tr class="{{ classes | join(' ' ) }}" id="team: {{ score .team .teamid }}" style="border-bottom-width : 0; height: 28px;">
382
+ <tr class="{{ classes | join(' ' ) }}" data-team- id ="{{ score .team .teamid }}" style="border-bottom-width : 0; height: 28px;">
383
383
{% if enable_ranking %}
384
384
<td class="scorepl {{medalColor }}" rowspan="2">
385
385
{# Only print rank when score is different from the previous team #}
You can’t perform that action at this time.
0 commit comments