diff --git a/app/views/challenges/_edit_evaluating_page.html.erb b/app/views/challenges/_edit_evaluating_page.html.erb index 33e22610..d660b6f3 100644 --- a/app/views/challenges/_edit_evaluating_page.html.erb +++ b/app/views/challenges/_edit_evaluating_page.html.erb @@ -428,12 +428,12 @@ for (var i = 0; i < percentagelist.length; i++) { maxnum = maxnum + parseInt($(percentagelist[i]).val()); } + if(maxnum != 100){ + $("#occupy_type").show() + return + } } console.log("######"+maxnum); - if(maxnum != 100){ - $("#occupy_type").show() - return - } test_set_whether_lock(); var path = $("#shixun_file_path");