Update the amount of solves shown on the chal window when solves are listed (#403)

Closes #402
This commit is contained in:
Kevin Chung
2017-10-06 16:38:49 -04:00
committed by GitHub
parent 4862a3ca10
commit 069526fc87

View File

@@ -189,6 +189,7 @@ function updatesolves(cb){
function getsolves(id){ function getsolves(id){
$.get(script_root + '/chal/'+id+'/solves', function (data) { $.get(script_root + '/chal/'+id+'/solves', function (data) {
var teams = data['teams']; var teams = data['teams'];
$('.chal-solves').text((parseInt(teams.length) + " Solves"));
var box = $('#chal-solves-names'); var box = $('#chal-solves-names');
box.empty(); box.empty();
for (var i = 0; i < teams.length; i++) { for (var i = 0; i < teams.length; i++) {