分组作业提示错误

This commit is contained in:
cxt 2017-06-30 23:32:50 +08:00
parent fe6e06ee13
commit c5510912ec
1 changed files with 1 additions and 2 deletions

View File

@ -548,8 +548,7 @@ function submit_new_student_work(type){
if(type == 3){
var min_num = parseInt($("#min_num_member").html());
var max_num = parseInt($("#max_num_member").html());
if( max_num >= $("input[name='user_id[]']").length >= min_num){
} else{
if( max_num < $("input[name='user_id[]']").length || $("input[name='user_id[]']").length < min_num){
result = false;
notice_box("成员人数不符合要求");
}