From 0634f36c107ef56f1afc91487a3d24dee19163af Mon Sep 17 00:00:00 2001 From: wanglinchun Date: Mon, 5 May 2014 09:00:10 +0800 Subject: [PATCH] =?UTF-8?q?"=E6=89=93=E5=88=86=E5=90=8E=E4=B8=8D=E8=A6=81?= =?UTF-8?q?=E6=98=BE=E7=A4=BA=E8=8B=B1=E6=96=87=EF=BC=8C=E8=80=8C=E4=B8=94?= =?UTF-8?q?=E8=BF=98=E8=A6=81=E6=8F=90=E7=A4=BA=EF=BC=9A=E6=82=A8=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=87=8D=E6=96=B0=E6=89=93=E5=88=86"=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/softapplications/show.html.erb | 3 ++- public/javascripts/seems_rateable/rateable.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/softapplications/show.html.erb b/app/views/softapplications/show.html.erb index 510250ee0..e68ae699f 100644 --- a/app/views/softapplications/show.html.erb +++ b/app/views/softapplications/show.html.erb @@ -112,7 +112,8 @@ -->
软件评论:
-
评分: <%= rating_for @softapplication, dimension: :quality, class: 'rateable div_inline' %>
+
评分: <%= rating_for @softapplication, dimension: :quality, class: 'rateable div_inline' %>(您可以重新打分,打分结果以最后一次打分为主!)
+
diff --git a/public/javascripts/seems_rateable/rateable.js b/public/javascripts/seems_rateable/rateable.js index 25377f3f0..f35a43437 100644 --- a/public/javascripts/seems_rateable/rateable.js +++ b/public/javascripts/seems_rateable/rateable.js @@ -14,8 +14,8 @@ $(document).ready(function(){ path : '/rateable/ratings', onSuccess : function(element, rate){ //something like -> - //alert('success'); - $('Thanks for rating!').insertAfter(element) + alert('本次打分成功!'); + //$('Thanks for rating!').insertAfter(element) }, onError : function(element, rate) { $('You have already rated!').insertAfter(element)