mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-17 22:14:25 +01:00
Remove unnecessary data from standard-challenge-update.js (#539)
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user