diff --git a/app/views/blogs/_article.html.erb b/app/views/blogs/_article.html.erb
index 33a3201c0..ee20dcd22 100644
--- a/app/views/blogs/_article.html.erb
+++ b/app/views/blogs/_article.html.erb
@@ -57,13 +57,14 @@
- <% if activity.parent_id.nil? %>
- <%= activity.content.to_s.html_safe%>
- <% else %>
- <%= activity.parent.content.to_s.html_safe%>
- <% end %>
+
+
+ <% if activity.parent_id.nil? %>
+ <%= activity.content.to_s.html_safe%>
+ <% else %>
+ <%= activity.parent.content.to_s.html_safe%>
+ <% end %>
+
@@ -72,6 +73,11 @@
<%= render :partial => 'blog_comments/attachments_links', :locals => {:attachments => activity.attachments, :options => options, :is_float => true} %>
<% end %>
+
+
+
+
+
-
diff --git a/app/views/blogs/_article_list.html.erb b/app/views/blogs/_article_list.html.erb
index f6383c95b..10868efb4 100644
--- a/app/views/blogs/_article_list.html.erb
+++ b/app/views/blogs/_article_list.html.erb
@@ -76,15 +76,21 @@
$(function () {
init_activity_KindEditor_data(<%= topic.id%>, null, "87%", "<%=topic.class.to_s%>");
showNormalImage('activity_description_<%= topic.id %>');
- /*var description_images=$("div#activity_description_<%#= topic.id %>").find("img");
- if (description_images.length>0) {
- for (var i=0; i").attr("href",image.attr('src'));
- image.wrap(element);
- }
- }
- $('#activity_description_<%#= topic.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false});*/
+ if($("#intro_content_<%= topic.id %>").height() > 360) {
+ $("#intro_content_show_<%= topic.id %>").show();
+ }
+ $("#intro_content_show_<%= topic.id %>").click(function(){
+ $("#activity_description_<%= topic.id %>").toggleClass("maxh360");
+ $("#activity_description_<%= topic.id%>").toggleClass("lh18");
+ $("#intro_content_show_<%= topic.id %>").hide();
+ $("#intro_content_hide_<%= topic.id %>").show();
+ });
+ $("#intro_content_hide_<%= topic.id %>").click(function(){
+ $("#activity_description_<%= topic.id %>").toggleClass("maxh360");
+ $("#activity_description_<%= topic.id%>").toggleClass("lh18");
+ $("#intro_content_hide_<%= topic.id %>").hide();
+ $("#intro_content_show_<%= topic.id %>").show();
+ });
});
<% if topic %>
diff --git a/app/views/boards/_project_show_detail.html.erb b/app/views/boards/_project_show_detail.html.erb
index 166978ee0..7af315f56 100644
--- a/app/views/boards/_project_show_detail.html.erb
+++ b/app/views/boards/_project_show_detail.html.erb
@@ -41,15 +41,21 @@
$(function () {
init_activity_KindEditor_data(<%= topic.id%>, null, "87%");
showNormalImage('activity_description_<%= topic.id %>');
- /*var description_images=$("div#activity_description_<%#= topic.id %>").find("img");
- if (description_images.length>0) {
- for (var i=0; i").attr("href",image.attr('src'));
- image.wrap(element);
- }
- }
- $('#activity_description_<%#= topic.id %> a').colorbox({rel:'nofollow', close: "关闭", returnFocus: false});*/
+ if($("#intro_content_<%= topic.id %>").height() > 360) {
+ $("#intro_content_show_<%= topic.id %>").show();
+ }
+ $("#intro_content_show_<%= topic.id %>").click(function(){
+ $("#activity_description_<%= topic.id %>").toggleClass("maxh360");
+ $("#activity_description_<%= topic.id%>").toggleClass("lh18");
+ $("#intro_content_show_<%= topic.id %>").hide();
+ $("#intro_content_hide_<%= topic.id %>").show();
+ });
+ $("#intro_content_hide_<%= topic.id %>").click(function(){
+ $("#activity_description_<%= topic.id %>").toggleClass("maxh360");
+ $("#activity_description_<%= topic.id%>").toggleClass("lh18");
+ $("#intro_content_hide_<%= topic.id %>").hide();
+ $("#intro_content_show_<%= topic.id %>").show();
+ });
});
<% if topic %>
diff --git a/public/stylesheets/courses.css b/public/stylesheets/courses.css
index 2e8133172..434b13dd3 100644
--- a/public/stylesheets/courses.css
+++ b/public/stylesheets/courses.css
@@ -216,8 +216,8 @@ a.menuGrey:hover {color:#fe7d68;}
#navSearchAlert {display:none;}
.homepagePostReplyjournal{margin-left: 15px; float: left;}
-.lh18 {line-height: 18px;}
-.maxh360 {max-height: 360px;}
+/*.lh18 {line-height: 18px;}*/
+/*.maxh360 {max-height: 360px;}*/
/*邮件邀请*/
.box_main{ width:345px; margin:0 auto;}
diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css
index 0e387f5ef..9244fe5da 100644
--- a/public/stylesheets/new_user.css
+++ b/public/stylesheets/new_user.css
@@ -706,7 +706,8 @@ a.gz_btn{display:block; background:url(../images/pic_uersall.png) -318px -25px n
a:hover.gz_btn{ color:#ff5722;}
.homepagePostReplyjournal{margin-left: 15px; float: left;}
.lh18 {line-height: 18px;}
-.maxh360 {max-height: 360px;}
+/*该高度会写入配置文件*/
+.maxh360 {max-height: 760px;}
.courseMenu {width:30px; display:block; float:right;height: 50px;}
.courseMenuIcon {display:inline-block; background:url(../images/homepage_icon2.png) -190px -365px no-repeat; width:15px; height:15px; margin-top: 16px; margin-right: 15px; position: relative;line-height:0;}
diff --git a/public/stylesheets/project.css b/public/stylesheets/project.css
index 91afb852b..bb63b8c4e 100644
--- a/public/stylesheets/project.css
+++ b/public/stylesheets/project.css
@@ -962,12 +962,6 @@ a:hover.Reply_pic{border:1px solid #64bdd9;}
margin-bottom: 5px;
font-weight: bold;
}
-.maxh360 {
- max-height: 360px;
-}
-.lh18 {
- line-height: 18px;
-}
.homepagePostIntro {
font-size: 14px;
color: #484848;
diff --git a/public/stylesheets/public.css b/public/stylesheets/public.css
index e898db13e..7f9a4ad7a 100644
--- a/public/stylesheets/public.css
+++ b/public/stylesheets/public.css
@@ -956,4 +956,8 @@ span.at {color:#269ac9;}
.sectionContent li:hover {background-color:#cccccc;}
.sectionContent span {width:160px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; display:inline-block; height:20px; vertical-align:top;}
.orgDirection {width:392px; background-color:#f1f1f1; height:30px; vertical-align:middle; line-height:30px; color:#585858; padding-left:10px;}
-.orgSendSearch {border:1px solid #dddddd; outline:none; width:262px; height:22px; padding-left:10px; float:left;}
\ No newline at end of file
+.orgSendSearch {border:1px solid #dddddd; outline:none; width:262px; height:22px; padding-left:10px; float:left;}
+
+/*文本描述展开高度*/
+.maxh360 {max-height: 760px;}
+.lh18 { line-height: 18px;}
\ No newline at end of file