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

Closes #402
selenium-screenshot-testing
Kevin Chung 2017-10-06 16:38:49 -04:00 committed by GitHub
parent 4862a3ca10
commit 069526fc87
1 changed files with 1 additions and 0 deletions

View File

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