mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-22 10:58:41 +00:00
fix(problem/manage/data/configure): default value of subtasks
This commit is contained in:
parent
a70e78d4d5
commit
c65f08e2f5
@ -1350,6 +1350,22 @@ $.fn.problem_configure_subtasks = function(problem_conf) {
|
|||||||
});
|
});
|
||||||
})(i);
|
})(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_subtasks.append(
|
||||||
$('<div class="list-group-item" />').append(
|
$('<div class="list-group-item" />').append(
|
||||||
$('<div class="fw-bold" />').text('Subtask #' + i)
|
$('<div class="fw-bold" />').text('Subtask #' + i)
|
||||||
|
Loading…
Reference in New Issue
Block a user