|
|
|
@ -9,7 +9,11 @@ $('#score_<%= @work.id%>').peSlider({range: 'min'});
|
|
|
|
|
$("#score_list_<%= @work.id%>").removeAttr("style");
|
|
|
|
|
|
|
|
|
|
<% if @is_teacher %>
|
|
|
|
|
<% if @homework.homework_type == 1%>
|
|
|
|
|
$("#student_work_<%= @work.id%>").replaceWith("<%= escape_javascript(render :partial => 'evaluation_student_work',:locals => {:student_work => @work}) %>");
|
|
|
|
|
<% else%>
|
|
|
|
|
$("#student_work_<%= @work.id%>").replaceWith("<%= escape_javascript(render :partial => 'student_work',:locals => {:student_work => @work}) %>");
|
|
|
|
|
<% end%>
|
|
|
|
|
<% else %>
|
|
|
|
|
$("#student_work_<%= @work.id%>").replaceWith("<%= escape_javascript(render :partial => 'evaluation_work',:locals => {:student_work => @work}) %>");
|
|
|
|
|
<% end%>
|
|
|
|
@ -18,24 +22,16 @@ $("#score_list_<%= @work.id%>").removeAttr("style");
|
|
|
|
|
$(function(){
|
|
|
|
|
//匿评评分提示
|
|
|
|
|
$(".student_score_info").bind("mouseover",function(e){
|
|
|
|
|
//alert($(this).html());
|
|
|
|
|
$(this).find("div").show();
|
|
|
|
|
// $(this).find("div").css("top",e.pageY);
|
|
|
|
|
// $(this).find("div").css("left",e.pageX);
|
|
|
|
|
});
|
|
|
|
|
$(".student_score_info").bind("mouseout",function(e){
|
|
|
|
|
//alert($(this).html());
|
|
|
|
|
$(this).find("div").hide();
|
|
|
|
|
});
|
|
|
|
|
//最终成绩提示
|
|
|
|
|
$(".student_final_scor_info").bind("mouseover",function(e){
|
|
|
|
|
//alert($(this).html());
|
|
|
|
|
$(this).find("div").show();
|
|
|
|
|
// $(this).find("div").css("top",e.pageY);
|
|
|
|
|
// $(this).find("div").css("left",e.pageX);
|
|
|
|
|
});
|
|
|
|
|
$(".student_final_scor_info").bind("mouseout",function(e){
|
|
|
|
|
//alert($(this).html());
|
|
|
|
|
$(this).find("div").hide();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|