Fixes multiple line challenge names in admin challenges panel

selenium-screenshot-testing
Kevin Chung 2016-02-20 13:47:30 -05:00
parent 3e8f5bbbc5
commit 1532fc3cf4
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ table{
}
.chal-button > .chal-points {
margin-bottom: 0px;
margin: -20px 0 0 0;
height: 20px;
}

View File

@ -167,7 +167,7 @@ function loadchals(){
for (var i = 0; i <= challenges['game'].length - 1; i++) {
var chal = challenges['game'][i]
var chal_button = $('<button class="chal-button col-md-2 theme-background" value="{0}"><p class="chal-name">{1}</p><p class="chal-points">{2}</p><span class="chal-percent">{3}% solved</span></button>'.format(chal.id, chal.name, chal.value, Math.round(chal.percentage_solved * 100)));
var chal_button = $('<button class="chal-button col-md-2 theme-background" value="{0}"><h5>{1}</h5><p class="chal-points">{2}</p><span class="chal-percent">{3}% solved</span></button>'.format(chal.id, chal.name, chal.value, Math.round(chal.percentage_solved * 100)));
$('#' + challenges['game'][i].category.replace(/ /g,"-").hashCode()).append(chal_button);
};