From cc71682e4066ad5087e6a2e6491f2c3e7d3421c2 Mon Sep 17 00:00:00 2001 From: z9hang Date: Fri, 7 Nov 2014 13:51:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=88=86=E5=89=8D=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E4=BF=AE=E6=94=B9=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/javascripts/seems_rateable/jRating.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/public/javascripts/seems_rateable/jRating.js b/public/javascripts/seems_rateable/jRating.js index 9c4fedeb0..02cb7d979 100644 --- a/public/javascripts/seems_rateable/jRating.js +++ b/public/javascripts/seems_rateable/jRating.js @@ -138,7 +138,14 @@ $("p.jRatingInfos").remove(); }, click : function(e){ - var element = this; + var flag = confirm("确定评分?(学生评分之后将无法修改)"); + if(!flag) + { + e.cancel(); + } + + + var element = this; /*set vars*/ hasRated = true;