展开多个作品时点赞功能异常

This commit is contained in:
sw 2015-05-29 10:54:03 +08:00
parent 9f09270aed
commit c8a4970f73
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@
<% end%>
<% if (@homework.homework_type != 1 || @homework.homework_detail_manual.comment_status == 3) && @work.user != User.current%>
<!-- 普通作业或者编程作业,或者是匿评结束阶段,显示点赞按钮 -->
<li class="fr" id="student_work_praise_<%= @homework.id%>">
<li class="fr" id="student_work_praise_<%= @work.id%>">
<%= render :partial => 'student_work_praise' %>
</li>
<% end%>

View File

@ -1 +1 @@
$('#student_work_praise_<%= @homework.id%>').html('<%= escape_javascript(render :partial => 'student_work/student_work_praise')%>');
$('#student_work_praise_<%= @work.id%>').html('<%= escape_javascript(render :partial => 'student_work/student_work_praise')%>');