课程通知更多按钮

This commit is contained in:
sw 2015-06-02 17:50:57 +08:00
parent 419dedfa1a
commit c33af3d4bf
1 changed files with 7 additions and 2 deletions

View File

@ -36,8 +36,13 @@
<%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %>
<br />
<div class="cl mb5"></div>
<div id="news_description_<%= news.id %>" class="news_description mt5">
<%= news.description.html_safe %>
<script>
$(function(){if($("#news_description_<%= news.id%>_content").height()>360){$("#news_foot_<%= news.id%>").show();}});
</script>
<div id="news_description_<%= news.id%>" class="news_description mt5">
<div id="news_description_<%= news.id%>_content" class="upload_img">
<%= news.description.html_safe %>
</div>
</div>
<div class="news_foot c_red" style="cursor:pointer;display: none;" onclick="news_show_more_des(<%= news.id %>);" id="news_foot_<%= news.id %>">
<%= l(:button_more)%>...