mirror of
https://github.com/aljazceru/CTFd.git
synced 2025-12-18 14:34:21 +01:00
Fix some JS issues
This commit is contained in:
@@ -376,7 +376,7 @@ function loadchal(id, update) {
|
|||||||
//})
|
//})
|
||||||
if (typeof update === 'undefined')
|
if (typeof update === 'undefined')
|
||||||
$('#update-challenge').modal();
|
$('#update-challenge').modal();
|
||||||
}
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function openchal(id){
|
function openchal(id){
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
$.ajaxSetup({ cache: false });
|
||||||
function load_chal_template(challenge){
|
function load_chal_template(challenge){
|
||||||
$.get(script_root + challenge.templates.create, function(template_data){
|
$.get(script_root + challenge.templates.create, function(template_data){
|
||||||
var template = Handlebars.compile(template_data);
|
var template = Handlebars.compile(template_data);
|
||||||
|
|||||||
Reference in New Issue
Block a user