mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +01:00
Temporary fix for #67
This commit is contained in:
@@ -184,6 +184,7 @@ function loadchals(){
|
|||||||
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
$('#submit-key').click(function (e) {
|
$('#submit-key').click(function (e) {
|
||||||
submitkey($('#chalid').val(), $('#answer').val())
|
submitkey($('#chalid').val(), $('#answer').val())
|
||||||
});
|
});
|
||||||
@@ -250,7 +251,7 @@ $('#create-key').click(function(e){
|
|||||||
|
|
||||||
var elem = $('<div>');
|
var elem = $('<div>');
|
||||||
elem.append("<input class='current-key' type='text' placeholder='Blank Key'>");
|
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('<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>');
|
elem.append('<a href="#" onclick="$(this).parent().remove()" class="remove-key">Remove</a>');
|
||||||
$('#current-keys').append(elem);
|
$('#current-keys').append(elem);
|
||||||
|
|||||||
@@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
<input type='number' name='value' placeholder='Value'><br/>
|
<input type='number' name='value' placeholder='Value'><br/>
|
||||||
<input type='text' name='key' placeholder='Key'><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
|
<input type="radio" name="key_type[0]" value="1">Regex
|
||||||
<br/>
|
<br/>
|
||||||
<input type="file" name="files[]" multiple="multiple">
|
<input type="file" name="files[]" multiple="multiple">
|
||||||
|
|||||||
Reference in New Issue
Block a user