From de5e7e27ece1b91f58302e918cafb38adf6584f7 Mon Sep 17 00:00:00 2001 From: Michael Save Date: Sat, 17 Mar 2012 11:10:59 +1100 Subject: [PATCH] Don't clone replies we can already see. That will break stuff. --- js/post-hover.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/post-hover.js b/js/post-hover.js index d68c103d..68dfc98e 100644 --- a/js/post-hover.js +++ b/js/post-hover.js @@ -63,7 +63,10 @@ $(document).ready(function(){ url: url, context: document.body, success: function(data) { - $('div.post:first').prepend($(data).find('div.post.reply').css('display', 'none').addClass('hidden')); + $(data).find('div.post.reply').each(function() { + if($('#' + $(this).attr('id')).length == 0) + $('div.post:first').prepend($(this).css('display', 'none').addClass('hidden')); + }); if(typeof window.enable_fa == 'function' && localStorage['forcedanon']) enable_fa();