老师评阅作品时可以不写评语,只有学生匿评的时候才强制写评语

cxt_course
cxt 10 years ago
parent 7f7d0ac6f7
commit 6e582fa631

@ -23,13 +23,17 @@
<% end%>
<script type="text/javascript">
function score_submit(id){
if ($.trim($('#score_comment_'+id).val()) == "") {
$('#hint_message_'+id).html("为了对其他学生的作品负责,请您务必填写评语");
$("#hint_message_"+id).css('color','#ff0000');
$("#score_comment_"+id).focus();
} else {
<% if !@is_teacher %>
if ($.trim($('#score_comment_'+id).val()) == "") {
$('#hint_message_'+id).html("为了对其他学生的作品负责,请您务必填写评语");
$("#hint_message_"+id).css('color','#ff0000');
$("#score_comment_"+id).focus();
} else {
$("#work_submit_"+id).parent().parent().submit();
$('#about_hwork_'+id).html('');
}
<% else %>
$("#work_submit_"+id).parent().parent().submit();
$('#about_hwork_'+id).html('');
}
<% end %>
}
</script>
Loading…
Cancel
Save