From d99ce3fe8eae14195abb618f24c83afcedb1c0e0 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Sun, 5 Feb 2023 18:21:23 +0800 Subject: [PATCH] fix(problem/manage/data/configure): score range --- web/js/uoj.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/js/uoj.js b/web/js/uoj.js index e9baaa7..a100769 100644 --- a/web/js/uoj.js +++ b/web/js/uoj.js @@ -1221,7 +1221,7 @@ $.fn.problem_configure_point_scores = function(problem_conf) { } for (var i = 1; i <= n_tests; i++) { - var input_point_score = $(''); + var input_point_score = $(''); if (problem_conf['point_score_' + i]) { input_point_score.val(problem_conf['point_score_' + i]); @@ -1312,12 +1312,13 @@ $.fn.problem_configure_subtasks = function(problem_conf) { div_subtasks.empty(); var n_subtasks = parseInt(input_n_subtasks.val() || '0'); + var n_tests = parseInt(problem_conf['n_tests'] || '10'); problem_conf['n_subtasks'] = input_n_subtasks.val(); for (var i = 1; i <= n_subtasks; i++) { var input_subtask_type = $(''); - var input_subtask_score = $(''); + var input_subtask_end = $(''); + var input_subtask_score = $(''); var input_subtask_used_time_type = $('