diff --git a/app/views/student_work/add_score.js.erb b/app/views/student_work/add_score.js.erb index b7b59c075..d5e0f7cd3 100644 --- a/app/views/student_work/add_score.js.erb +++ b/app/views/student_work/add_score.js.erb @@ -8,3 +8,15 @@ $('#score_<%= @work.id%>').peSlider({range: 'min'}); <% end%> $("#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(); + }); +});