fix(problem/manage/data/configure): default value of subtasks

This commit is contained in:
Baoshuo Ren 2023-02-05 19:17:26 +08:00
parent a70e78d4d5
commit c65f08e2f5
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

@ -1350,6 +1350,22 @@ $.fn.problem_configure_subtasks = function(problem_conf) {
});
})(i);
if (problem_conf['subtask_type_' + i]) {
input_subtask_type.val(problem_conf['subtask_type_' + i]);
}
if (problem_conf['subtask_end_' + i]) {
input_subtask_end.val(problem_conf['subtask_end_' + i]);
}
if (problem_conf['subtask_score_' + i]) {
input_subtask_score.val(problem_conf['subtask_score_' + i]);
}
if (problem_conf['subtask_used_time_type_' + i]) {
input_subtask_used_time_type.val(problem_conf['subtask_used_time_type_' + i]);
}
div_subtasks.append(
$('<div class="list-group-item" />').append(
$('<div class="fw-bold" />').text('Subtask #' + i)