Remove unnecessary data from standard-challenge-update.js (#539)

This commit is contained in:
Kevin Chung
2017-12-24 17:01:47 -05:00
committed by GitHub
parent fa9cb2498b
commit 20a7d6a769

View File

@@ -1,14 +1,3 @@
// function deletechal(chalid){
// $.post(script_root + '/admin/chal/delete', {'nonce':$('#nonce').val(), 'id':chalid});
// }
$('#submit-key').click(function (e) {
submitkey($('#chalid').val(), $('#answer').val())
});
@@ -18,10 +7,6 @@ $('#submit-keys').click(function (e) {
$('#update-keys').modal('hide');
});
$('#limit_max_attempts').change(function() {
if(this.checked) {
$('#chal-attempts-group').show();
@@ -43,8 +28,6 @@ $('#new-desc-edit').on('shown.bs.tab', function (event) {
}
});
function loadchal(id, update) {
$.get(script_root + '/admin/chal/' + id, function(obj){
$('#desc-write-link').click(); // Switch to Write tab
@@ -73,10 +56,6 @@ function loadchal(id, update) {
function openchal(id){
loadchal(id);
loadkeys(id);
loadhints(id);
loadtags(id);
loadfiles(id);
}
$(document).ready(function(){