mirror of https://github.com/JohnHammond/CTFd.git
Temporary fix for #67
parent
40e52fb630
commit
e1584f2ac6
|
@ -184,6 +184,7 @@ function loadchals(){
|
|||
|
||||
});
|
||||
}
|
||||
|
||||
$('#submit-key').click(function (e) {
|
||||
submitkey($('#chalid').val(), $('#answer').val())
|
||||
});
|
||||
|
@ -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);
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
|
||||
<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">
|
||||
|
|
Loading…
Reference in New Issue