Merge branch 'Homework' of http://repository.trustie.net/xianbo/trustie2 into Homework

This commit is contained in:
sw 2014-11-08 13:44:41 +08:00
commit 6157a67e23
2 changed files with 27 additions and 26 deletions

View File

@ -3,7 +3,8 @@
<%#= render :partial => 'show_score', locals: {:stars => totle_score} %> -->
<% elsif is_comprehensive_evaluation == 2 %>
<% if has_evaluation %>
<%= l(:label_work_rating) %>
<%= rating_for homework, dimension: :quality,start_score: 0, class: 'rateable div_inline' %>
<% else %>
<%= l(:label_work_rating) %>
<%= rating_for homework, dimension: :quality,start_score: 0, class: 'rateable div_inline' %>

View File

@ -14,7 +14,7 @@ $(document).ready(function(){
path : '/rateable/ratings',
onSuccess : function(element, rate){
//something like ->
alert('本次打分成功!');
//alert('本次打分成功!');
//$('<span class="text-success"><small style="display:inline-block;">Thanks for rating!</small></span>').insertAfter(element)
},
onError : function(element, rate) {