打分后匿评悬浮的详细信息不显示
This commit is contained in:
parent
4783bad924
commit
378907d68c
|
@ -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();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
Loading…
Reference in New Issue