评分控件不能用问题

This commit is contained in:
z9hang 2014-11-02 11:17:39 +08:00
parent 96626eeb6b
commit aeaa212c35
2 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
<div>评分: <div>评分:
<%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %>
<!-- <span style="font-size: 11px">(您可以对作业进行多次评价,以最后一次评价为最终结果)</span>--> <span style="font-size: 11px">(您可以对作业进行多次评价,以最后一次评价为最终结果)</span>
</div> </div>

View File

@ -8,6 +8,7 @@
//如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick; //如果要做成点击后再转到请将<li>中的onmouseover 改成 onclick;
//]]> //]]>
</script> </script>
<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable'%>
<div id="popbox"> <div id="popbox">
<div class="ping_con"> <div class="ping_con">
<h2><%= @homework.name %></h2> <h2><%= @homework.name %></h2>
@ -48,7 +49,7 @@
</p> </p>
<div class="ping_star"> <div class="ping_star">
评分: <%= l(:label_work_rating) %>
<%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %> <%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>
</div> </div>
<div class="cl"></div> <div class="cl"></div>