diff --git a/app/views/news/_course_news.html.erb b/app/views/news/_course_news.html.erb
index 731ae78a1..a1f94ab27 100644
--- a/app/views/news/_course_news.html.erb
+++ b/app/views/news/_course_news.html.erb
@@ -52,7 +52,7 @@
<%= l(:label_release_news) %>:<%= link_to h(news.title), news_path(news),:class => 'problem_tit fl fb c_dblue' %>
<%= textilizable(news, :description) %>
<%= l(:label_create_time) %> :<%= format_time(news.created_on) %>
-
+
@@ -90,4 +90,13 @@
});
});
});
+ $(function(){
+ $('.news_description').each(function () {
+ if($(this).height() >= 60)
+ {
+ $('#news_foot_'+$(this).attr('id').replace('news_description_','')).css("display","block");
+ }
+ }
+ )
+ });
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 0d995d095..6069c4a14 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -19,7 +19,7 @@ a:hover.project_name{ color:#016f33;}
a.project_txt02{ color:#0781b4; width:618px; display:block; float:left; overflow:hidden; white-space: nowrap; text-overflow:ellipsis;}
a:hover.project_txt{ color:#066e9a;}
.noline{ border-bottom:none;}
-.news_description{max-height: 38px;overflow:hidden; }
+.news_description{max-height: 60px;overflow:hidden; }
.news_description_none{max-height: none;}
a.news_foot{ border:1px solid #e8eef2; color: #929598; text-align:center; width:600px; height:20px; padding-top:3px; cursor:pointer;}
a:hover.news_foot{ color:#787b7e; border:1px solid #d4d4d4;}