项目描述展开信息和收起信息

This commit is contained in:
whimlex 2015-04-16 04:53:09 +08:00
parent d23ac832ca
commit 04698c3e53
2 changed files with 17 additions and 4 deletions

View File

@ -100,7 +100,7 @@
<%= l(:label_search)%>
</a>
<div class="cl"></div>
<span id="project_name_span" class=" fl"></span>
<span id="project_name_span" class="fl"></span>
<% end %>
</div>
</div><!--TopBar end-->
@ -185,7 +185,7 @@
</div>
</div>
<div class="lg-foot" id="lg-foot" onclick="show_more_msg();">
<%= l(:label_expend_information)%>
<label id="expend_more_information" value="<%= l(:label_expend_information)%>"><%= l(:label_expend_information)%></label>
<span class="g-arr-down">
<img src="/images/jiantou.jpg" width="12" height="6" />
</span>

View File

@ -35,8 +35,21 @@ function expand_tools_expand()
}
// 描述显示更多信息
function show_more_msg()
{$("#course_description").toggleClass("course_description_none");}
function show_more_msg(){
$("#course_description").toggleClass("course_description_none");
var information = $("#expend_more_information");
var val = information.attr("value");
if (val=="展开更多信息" )
{
$("#expend_more_information").text("收起描述信息");
information.attr("value","收起描述信息");
}
else
{
$("#expend_more_information").text("展开更多信息");
information.attr("value","展开更多信息");
}
}
///////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////项目讨论区