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)