From 378907d68cb4c724840c4a4d29a86ea9f097214c Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 27 May 2015 17:34:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=93=E5=88=86=E5=90=8E=E5=8C=BF=E8=AF=84?= =?UTF-8?q?=E6=82=AC=E6=B5=AE=E7=9A=84=E8=AF=A6=E7=BB=86=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/student_work/add_score.js.erb | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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(); + }); +});