diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index 175ba23c0..15e30bfbb 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -100,7 +100,7 @@ <%= l(:label_search)%>
- + <% end %> @@ -185,7 +185,7 @@
- <%= l(:label_expend_information)%> + diff --git a/public/javascripts/project.js b/public/javascripts/project.js index f1b696ce5..2ee9c1c83 100644 --- a/public/javascripts/project.js +++ b/public/javascripts/project.js @@ -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","展开更多信息"); + } +} /////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////项目讨论区