diff --git a/web/js/uoj.js b/web/js/uoj.js index 8b8b2ad..ccabb32 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -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( $('
').append( $('').text('Subtask #' + i)