Skip to content

Commit

Permalink
Temporary fix for #67
Browse files Browse the repository at this point in the history
  • Loading branch information
ColdHeat committed Nov 24, 2015
1 parent 40e52fb commit e1584f2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CTFd/static/admin/js/chalboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ function loadchals(){

});
}

$('#submit-key').click(function (e) {
submitkey($('#chalid').val(), $('#answer').val())
});
Expand Down Expand Up @@ -250,7 +251,7 @@ $('#create-key').click(function(e){

var elem = $('<div>');
elem.append("<input class='current-key' type='text' placeholder='Blank Key'>");
elem.append('<input type="radio" name="key_type[{0}]" value="0">Static'.format(amt));
elem.append('<input type="radio" name="key_type[{0}]" value="0" checked="checked">Static'.format(amt));
elem.append('<input type="radio" name="key_type[{0}]" value="1">Regex'.format(amt));
elem.append('<a href="#" onclick="$(this).parent().remove()" class="remove-key">Remove</a>');
$('#current-keys').append(elem);
Expand Down
2 changes: 1 addition & 1 deletion CTFd/templates/admin/chals.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h3>New Challenge</h3>

<input type='number' name='value' placeholder='Value'><br/>
<input type='text' name='key' placeholder='Key'><br/>
<input type="radio" name="key_type[0]" value="0">Static
<input type="radio" name="key_type[0]" value="0" checked="checked">Static
<input type="radio" name="key_type[0]" value="1">Regex
<br/>
<input type="file" name="files[]" multiple="multiple">
Expand Down

0 comments on commit e1584f2

Please sign in to comment.