mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 22:44:24 +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) {
|
$('#submit-key').click(function (e) {
|
||||||
submitkey($('#chalid').val(), $('#answer').val())
|
submitkey($('#chalid').val(), $('#answer').val())
|
||||||
});
|
});
|
||||||
@@ -18,10 +7,6 @@ $('#submit-keys').click(function (e) {
|
|||||||
$('#update-keys').modal('hide');
|
$('#update-keys').modal('hide');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
$('#limit_max_attempts').change(function() {
|
$('#limit_max_attempts').change(function() {
|
||||||
if(this.checked) {
|
if(this.checked) {
|
||||||
$('#chal-attempts-group').show();
|
$('#chal-attempts-group').show();
|
||||||
@@ -43,8 +28,6 @@ $('#new-desc-edit').on('shown.bs.tab', function (event) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function loadchal(id, update) {
|
function loadchal(id, update) {
|
||||||
$.get(script_root + '/admin/chal/' + id, function(obj){
|
$.get(script_root + '/admin/chal/' + id, function(obj){
|
||||||
$('#desc-write-link').click(); // Switch to Write tab
|
$('#desc-write-link').click(); // Switch to Write tab
|
||||||
@@ -73,10 +56,6 @@ function loadchal(id, update) {
|
|||||||
|
|
||||||
function openchal(id){
|
function openchal(id){
|
||||||
loadchal(id);
|
loadchal(id);
|
||||||
loadkeys(id);
|
|
||||||
loadhints(id);
|
|
||||||
loadtags(id);
|
|
||||||
loadfiles(id);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$(document).ready(function(){
|
$(document).ready(function(){
|
||||||
|
|||||||
Reference in New Issue
Block a user