匿评可以打0分并给出提示

This commit is contained in:
sw 2015-05-07 16:12:56 +08:00
parent 5ea295f8b5
commit e884f58956
2 changed files with 11 additions and 2 deletions

View File

@ -21,7 +21,16 @@
function submit_jours(is_teacher) function submit_jours(is_teacher)
{ {
if(!is_teacher&&$("#stars_value").val() == "0"){alert("您还没有打分");return;} if(!is_teacher&&$("#stars_value").val() == "0"){
if(confirm('是否确定评分为0分?'))
{
}
else
{
return;
}
}
if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;} if(!is_teacher&&$("#new_form_user_message").val() == ""){alert("您还没有填写评语");return;}
$('#new_form_user_message').parent().submit(); $('#new_form_user_message').parent().submit();
} }

View File

@ -22,7 +22,7 @@
</span> </span>
<% end %> <% end %>
</span> </span>
<span style="color:#a6a6a6; margin-right:30px; margin-left:10px;"> <span style="color:#a6a6a6; margin-right:20px; margin-left:10px;">
<%= format_time(review.created_at) %> <%= format_time(review.created_at) %>
</span> </span>
<span style="font-weight:bold; color:#a6a6a6; float: right;"> <span style="font-weight:bold; color:#a6a6a6; float: right;">