2014-11-03 14:47:28 +08:00
|
|
|
//教师评论
|
2014-05-27 20:01:21 +08:00
|
|
|
<% if @add_jour.is_comprehensive_evaluation == 1 %>
|
2014-11-03 15:28:54 +08:00
|
|
|
HoverLi(4);
|
2014-11-24 16:35:37 +08:00
|
|
|
$('#jour_count_4').html('<%= @comprehensive_evaluation.count %>');
|
|
|
|
$('#tbc_04').html('<%= escape_javascript(render(:partial => 'homework_attach/jour',:locals => {:jours => @comprehensive_evaluation,:show_score => true,:show_name => true,:is_jour => false})) %>');
|
2014-11-03 14:47:28 +08:00
|
|
|
//匿评
|
|
|
|
<% elsif @add_jour.is_comprehensive_evaluation == 2 %>
|
2014-11-24 16:35:37 +08:00
|
|
|
$('#add_jour').html('<%= escape_javascript(render(:partial => 'addjour', :locals => {:homework_attach => @homework, :sta => 0, :is_comprehensive_evaluation => @is_comprehensive_evaluation})) %>');
|
2014-11-03 14:47:28 +08:00
|
|
|
HoverLi(5);
|
2014-11-24 16:35:37 +08:00
|
|
|
$('#jour_count_5').html('<%= @anonymous_comments.count %>');
|
|
|
|
$('#tbc_05').html('<%= escape_javascript(render(:partial => 'homework_attach/jour',:locals => {:jours => @anonymous_comments,:show_score => true,:show_name => false,:is_jour => false})) %>');
|
2014-11-03 14:47:28 +08:00
|
|
|
//留言
|
2014-05-27 20:01:21 +08:00
|
|
|
<% else %>
|
2014-11-03 14:47:28 +08:00
|
|
|
HoverLi(3);
|
2014-11-24 16:35:37 +08:00
|
|
|
$('#jour_count_3').html('<%= @jours.count %>');
|
|
|
|
$('#tbc_03').html('<%= escape_javascript(render(:partial => 'homework_attach/jour',:locals => {:jours => @jour,:show_score => false,:show_name => true,:is_jour => true})) %>');
|
2014-11-03 15:28:54 +08:00
|
|
|
<% end %>
|
|
|
|
$('#new_form_user_message').val("");
|
|
|
|
$('#new_form_reference_user_id').val("");
|