diff --git a/app/views/sub_document_comments/_show_newstyle.html.erb b/app/views/sub_document_comments/_show_newstyle.html.erb index f573e6111..eae15bd4b 100644 --- a/app/views/sub_document_comments/_show_newstyle.html.erb +++ b/app/views/sub_document_comments/_show_newstyle.html.erb @@ -43,12 +43,39 @@ <% if count > 3 %>
- - 展开回复 + + 展开更多
<% end %> <% end %> - \ No newline at end of file + + + \ No newline at end of file diff --git a/app/views/sub_document_comments/show.html.erb b/app/views/sub_document_comments/show.html.erb index 0c2733086..240e1627d 100644 --- a/app/views/sub_document_comments/show.html.erb +++ b/app/views/sub_document_comments/show.html.erb @@ -83,7 +83,7 @@ <% if count > 3 %>
- + 展开更多
@@ -161,9 +161,15 @@ postContent=postContent.replace(/  /g,"   "); $(this).html(postContent); }); + var replyCount = $(".homepagePostReplyContainer").size(); + if (replyCount >3){ + for(var i= 3; i < replyCount+1; i++){ + $(".homepagePostReplyContainer").eq(i).hide(); + } + } }); function expand_reply(container, btnid) { - var target = $(container); + var target = $(container).children(".homepagePostReplyContainer"); var btn = $(btnid); if (btn.data('init') == '0') { btn.data('init', 1); diff --git a/public/stylesheets/org2.css b/public/stylesheets/org2.css index f134a869b..9e31bd047 100644 --- a/public/stylesheets/org2.css +++ b/public/stylesheets/org2.css @@ -62,7 +62,6 @@ a.sn-link-select {color:#809df9;} .sn-login {width:1200px; height:45px; line-height:45px; margin:0 auto; font-size:14px; color:#24366e; vertical-align:middle; text-align:right;} .sn-login2 {width:1200px; height:54px; line-height:54px; margin:0 auto; font-size:14px; color:#24366e; vertical-align:middle; text-align:right;} .sn-logo {width:1200px; height:90px; line-height:90px; margin:0 auto; vertical-align:middle;position:relative;} -.sn-logo-add{ display:block; top:10px; left:0px; position:absolute; width:20px; height:20px;background:url(../images/default_blank/icons-add.png) -0px -3px no-repeat;} .sn-search-input {width:328px; height:40px; font-size:16px; color:#ccc; padding-left:10px; border:1px solid #ccc; border-right:none; float:right; background-color:#fff; outline:none;} a.sn-search-button {width:53px; height:40px; border:1px solid #ccc; border-left:none; float:right; outline:none; background:url(../images/sn_search_icon.jpg) 0 3px no-repeat;} .sn-nav {width:1200px; height:55px; margin:0 auto; font-size:16px; position:relative; line-height:1; overflow:hidden;}