From 26baaa113bb16664a2c29274db6fb600bc114451 Mon Sep 17 00:00:00 2001 From: cuom1999 Date: Sun, 20 Nov 2022 12:28:31 -0600 Subject: [PATCH] Fix bug --- templates/problem/data.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/templates/problem/data.html b/templates/problem/data.html index 6fdd0ad..2cdcebf 100644 --- a/templates/problem/data.html +++ b/templates/problem/data.html @@ -289,6 +289,8 @@ outFiles.push(file); } } + console.log(inFiles); + console.log(outFiles); if (inFiles.length == 0) { alert("No input/output files. Make sure your files' suffices are .in(p)/.out"); return false; @@ -329,7 +331,7 @@ var $input = $("#id_cases-"+row+"-input_file"); $input.select2('destroy').empty().select2({ data: [inFiles[i]] }); $input.val(inFiles[i]).change(); - var $output = $("#id_cases-"+row+"-input_file"); + var $output = $("#id_cases-"+row+"-output_file"); $output.select2('destroy').empty().select2({ data: [outFiles[i]] }); $output.val(outFiles[i]).change();