Fix problem data bug
This commit is contained in:
parent
be83844d28
commit
de875bd384
1 changed files with 28 additions and 27 deletions
|
@ -43,6 +43,8 @@
|
|||
});
|
||||
}
|
||||
|
||||
$("#id_problem-data-checker").select2();
|
||||
$("#problem-type").select2();
|
||||
update_select2();
|
||||
|
||||
function autofill_if_exists($select, file) {
|
||||
|
@ -289,8 +291,6 @@
|
|||
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;
|
||||
|
@ -349,6 +349,7 @@
|
|||
row += 1;
|
||||
}
|
||||
}
|
||||
update_select2();
|
||||
return false;
|
||||
});
|
||||
|
||||
|
@ -491,7 +492,7 @@
|
|||
<td>
|
||||
<div>
|
||||
{{_('Problem type')}}:
|
||||
<select id="problem-type">
|
||||
<select id="problem-type" style="width: 5em">
|
||||
<option value="ICPC">ICPC</option>
|
||||
<option value="OI">OI</option>
|
||||
</select>
|
||||
|
|
Loading…
Reference in a new issue