2015-09-17 16:04:16 +08:00
|
|
|
if($("#about_hwork_<%= @work.id%>").children().length > 0){
|
|
|
|
$("#about_hwork_<%= @work.id%>").html("");
|
|
|
|
}
|
|
|
|
else{
|
|
|
|
<% if @homework.homework_type == 2%>
|
2015-11-05 10:40:24 +08:00
|
|
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'programing_work_show',:locals => {:work =>@work,:score =>@score,:student_work_scores => @student_work_scores}) %>");
|
2015-09-17 16:04:16 +08:00
|
|
|
<% else%>
|
2015-11-05 10:40:24 +08:00
|
|
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'show',:locals => {:work =>@work,:score =>@score,:student_work_scores => @student_work_scores}) %>");
|
2015-09-17 16:04:16 +08:00
|
|
|
<% end%>
|
|
|
|
$('#score_<%= @work.id%>').peSlider({range: 'min'});
|
|
|
|
}
|