打分后匿评悬浮的详细信息不显示

This commit is contained in:
sw 2015-05-27 17:34:44 +08:00
parent 4783bad924
commit 378907d68c
1 changed files with 12 additions and 0 deletions

View File

@ -8,3 +8,15 @@ $('#score_<%= @work.id%>').peSlider({range: 'min'});
<% end%> <% end%>
$("#student_work_<%= @work.id%>").replaceWith("<%= escape_javascript(render :partial => 'student_work',:locals => {:student_work => @work}) %>"); $("#student_work_<%= @work.id%>").replaceWith("<%= escape_javascript(render :partial => 'student_work',:locals => {:student_work => @work}) %>");
$(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();
});
});