diff --git a/js/dom-functions.js b/js/dom-functions.js index 1aea9c7..3e412eb 100644 --- a/js/dom-functions.js +++ b/js/dom-functions.js @@ -1330,7 +1330,9 @@ function findInReplyToStatusAndShow(q, qid,reply,only_first,onlyINreplyto) { reply_found.css('opacity','1'); if(only_first && reply_found_reply_to.length>0) { if(q.children('.view-more-container-top').length < 1) { - reply_found.before('
' + window.sL.viewMoreInConvBefore + '
'); + if(q.children('.queet').prevAll('.hidden-conversation').length>0) { + q.prepend('
' + window.sL.viewMoreInConvBefore + '
'); + } } findReplyToStatusAndShow(q, qid,qid,true); } @@ -1362,7 +1364,9 @@ function findReplyToStatusAndShow(q, qid,this_id,only_first) { } if(only_first && reply_founds_reply.length>0) { if(q.children('.view-more-container-bottom').length < 1) { - q.append('
' + window.sL.viewMoreInConvAfter + '
'); + if(q.children('.queet').nextAll('.hidden-conversation').length>0) { + q.append('
' + window.sL.viewMoreInConvAfter + '
'); + } } }