From cd95ed055867795274ee0c80131803c9a5429c91 Mon Sep 17 00:00:00 2001 From: Tim Date: Fri, 6 May 2016 16:20:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E7=BA=A7=E5=9B=9E=E5=A4=8D=E5=B1=95?= =?UTF-8?q?=E5=BC=80=E6=9B=B4=E5=A4=9A=E6=95=88=E6=9E=9C=E5=AE=9E=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_show_newstyle.html.erb | 33 +++++++++++++++++-- app/views/sub_document_comments/show.html.erb | 10 ++++-- public/stylesheets/org2.css | 1 - 3 files changed, 38 insertions(+), 6 deletions(-) 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;}