diff --git a/app/views/homework_attach/_addjour.html.erb b/app/views/homework_attach/_addjour.html.erb index e3aaa9591..c6a08209c 100644 --- a/app/views/homework_attach/_addjour.html.erb +++ b/app/views/homework_attach/_addjour.html.erb @@ -21,16 +21,9 @@ function submit_jours(is_teacher) { - if(!is_teacher&&$("#stars_value").val() == "0"){ - if(confirm('是否确定评分为0分?')) - { - - } - else - { - return; - } - } +// if(("#stars_value").val() == "0"){ +// if(confirm('是否确定评分为0分?')){}else{return;} +// } if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;} $('#new_form_user_message').parent().submit(); } diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb index 0a94afd59..a89322049 100644 --- a/app/views/homework_attach/_show.html.erb +++ b/app/views/homework_attach/_show.html.erb @@ -11,6 +11,14 @@ for (var i = num; i >= 0; i--) {$("#star0" + i).css("background-position","-24px 0px");} $("#stars_value").val(num); } + + function ChoseZero() + { + if(confirm('是否确定评分为0分?')) + { + ChoseStars(0); + } + }
diff --git a/app/views/homework_attach/_show_star.html.erb b/app/views/homework_attach/_show_star.html.erb index 6cb901875..49c9e2cf7 100644 --- a/app/views/homework_attach/_show_star.html.erb +++ b/app/views/homework_attach/_show_star.html.erb @@ -1,4 +1,4 @@ -零分 +零分