|
|
|
@ -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>
|