|
|
|
@ -86,7 +86,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
<% if count > 3 %>
|
|
|
|
|
<div class="homepagePostReplyBannerMore">
|
|
|
|
|
<a id="reply_btn_<%= @document.id %>" onclick="expand_reply('#reply_sub_div_<%= @document.id %> li','#reply_btn_<%= @document.id %>')" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help">
|
|
|
|
|
<a id="reply_btn_<%= @document.id %>" onclick="expand_reply('#reply_div_<%= @document.id %>','#reply_btn_<%=@document.id%>')" data-count="<%= count %>" data-init="0" class=" replyGrey" href="javascript:void(0)" value="show_help">
|
|
|
|
|
展开更多
|
|
|
|
|
</a>
|
|
|
|
|
</div>
|
|
|
|
@ -164,9 +164,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);
|
|
|
|
|