课程通知展开按钮

This commit is contained in:
sw 2015-06-10 16:39:28 +08:00
parent 57804a118d
commit a5d7c50fe3
2 changed files with 10 additions and 4 deletions

View File

@ -44,9 +44,8 @@
<%= 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)%>...
<span class="g-arr-down"></span>
<div class="news_foot currentDd" style="cursor:pointer;display: none;" onclick="news_show_more_des(<%= news.id %>);" id="news_foot_<%= news.id %>">
[展开]
</div>
<span class="fl"><%= l(:label_create_time)%><%= format_time(news.created_on)%></span>
<%= link_to_attachments_course news %>

View File

@ -353,6 +353,14 @@ function show_more_msg()
function news_show_more_des(id)
{
$('#news_description_' + id).toggleClass("news_description_none");
if($("#news_description_" + id).hasClass("news_description_none"))
{
$("#news_foot_" + id).html("[收起]");
}
else
{
$("#news_foot_" + id).html("[展开]");
}
}
function bid_show_more_des(id)
{
@ -365,7 +373,6 @@ function bid_show_more_des(id)
{
$("#bid_show_more_des_button" + id).html("[展开]");
}
}
//课程作业结束时间倒计时