Fix some JS issues

This commit is contained in:
Kevin Chung
2017-10-25 04:04:02 -04:00
parent b5a383a2e1
commit 58e4cb8364
2 changed files with 2 additions and 1 deletions

View File

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

View File

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