11 lines
619 B
Plaintext
11 lines
619 B
Plaintext
if($("#about_hwork_<%= @work.id%>").children().length > 0){
|
|
$("#about_hwork_<%= @work.id%>").html("");
|
|
}
|
|
else{
|
|
<% if @homework.homework_type == 2%>
|
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'programing_work_show',:locals => {:work =>@work,:score =>@score,:student_work_scores => @student_work_scores}) %>");
|
|
<% else%>
|
|
$("#about_hwork_<%= @work.id%>").html("<%= escape_javascript(render :partial => 'show',:locals => {:work =>@work,:score =>@score,:student_work_scores => @student_work_scores}) %>");
|
|
<% end%>
|
|
$('#score_<%= @work.id%>').peSlider({range: 'min'});
|
|
} |