班级作业:多次打分,如图回复块的分数显示不能自动刷新

This commit is contained in:
cxt 2016-11-04 19:18:39 +08:00
parent 59a4514950
commit 2f0ff68047
1 changed files with 1 additions and 1 deletions

View File

@ -8,7 +8,7 @@ $('#score_<%= @work.id%>').peSlider({range: 'min'});
//$("#work_score_<%#= @score.id%>").html("<%#= escape_javascript(render :partial => 'student_work_score', :locals => {:score => @new_score,:is_last => @is_last}) %>");
<%# end%>
$("#score_list_<%= @work.id%>").replaceWith("<%=escape_javascript(render :partial => 'student_work_score_records', :locals => {:student_work_scores => @student_work_scores, :is_member_work => is_member_work}) %>");
$("#score_list_<%= @work.id%>").html("<%=escape_javascript(render :partial => 'student_work_score_records', :locals => {:student_work_scores => @student_work_scores, :is_member_work => is_member_work}) %>");
var num = $("#work_num_<%= @work.id%>").html();
$("#score_list_<%= @work.id%>").removeAttr("style");