Starting DO integration

This commit is contained in:
CodeKevin
2015-01-24 00:48:41 -05:00
parent fb5e525775
commit 7642aeb1e5
6 changed files with 21 additions and 9 deletions

View File

@@ -135,7 +135,7 @@ function loadchals(){
};
for (var i = 0; i <= challenges['game'].length - 1; i++) {
$('#' + challenges['game'][i].category.replace(/ /g,"-")).append($('<button value="' + challenges['game'][i].id + '">' + challenges['game'][i].value + '</button>'));
$('#' + challenges['game'][i].category.replace(/ /g,"-")).append($('<button class="radius" value="' + challenges['game'][i].id + '">' + challenges['game'][i].value + '</button>'));
};
$('#challenges button').click(function (e) {
@@ -145,7 +145,7 @@ function loadchals(){
loadfiles(this.value);
});
$('tr').append('<button class="create-challenge"><i class="fa fa-plus"></i></button>');
$('tr').append('<button class="radius create-challenge"><i class="fa fa-plus"></i></button>');
$('.create-challenge').click(function (e) {
$('#new-chal-category').val($($(this).siblings()[0]).text().trim())