From b019c751dfd8dd7fd7a58c4c215e7b6d29df232e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sun, 5 May 2019 20:03:43 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E7=99=BE=E5=88=86?= =?UTF-8?q?=E6=AF=94=E9=99=90=E5=88=B6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/challenges/_edit_evaluating_page.html.erb | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/challenges/_edit_evaluating_page.html.erb b/app/views/challenges/_edit_evaluating_page.html.erb index 3dd94163..777fbfd8 100644 --- a/app/views/challenges/_edit_evaluating_page.html.erb +++ b/app/views/challenges/_edit_evaluating_page.html.erb @@ -191,7 +191,7 @@ - + @@ -330,7 +330,9 @@ function startSystem_score_percentage(){ getpercentage() } - + // function customSystem_score_percentage(){ + // + // } $(function(){ //填写百分比初始化 //$("#All_tests").attr('checked', 'checked'); @@ -426,12 +428,11 @@ if ($("#Custom_ratio").is(":checked")) { for (var i = 0; i < percentagelist.length; i++) { maxnum = maxnum+parseInt($(percentagelist[i]).val()); - } } } - if(maxnum != 100){ + if(maxnum<100||maxnum>100){ $("#occupy_type").show() return }