mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Fixed updatescores() (#1000)
* Fixes client side scoreboard updating (Closes #999)
This commit is contained in:
committed by
Kevin Chung
parent
ac236e26ea
commit
e6b865b61d
@@ -6,13 +6,13 @@ function updatescores() {
|
||||
for (var i = 0; i < teams.length; i++) {
|
||||
var row =
|
||||
"<tr>\n" +
|
||||
'<th scope="row" class="text-center">{0}</th>'.format(i + 1) +
|
||||
'<th scope="row" class="text-center">{0}</th>'.format(teams[i].pos) +
|
||||
'<td><a href="{0}/team/{1}">{2}</a></td>'.format(
|
||||
script_root,
|
||||
teams["standings"][i].id,
|
||||
htmlentities(teams["standings"][i].team)
|
||||
teams[i].id,
|
||||
htmlentities(teams[i].name)
|
||||
) +
|
||||
"<td>{0}</td>".format(teams["standings"][i].score) +
|
||||
"<td>{0}</td>".format(teams[i].score) +
|
||||
"</tr>";
|
||||
table.append(row);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user