Temporary fix for #67

selenium-screenshot-testing
Kevin Chung 2015-11-24 13:10:32 -05:00
parent 40e52fb630
commit e1584f2ac6
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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">