diff options
| author | Michael Save <savetheinternet@tinyboard.org> | 2012-03-17 11:10:59 +1100 |
|---|---|---|
| committer | Michael Save <savetheinternet@tinyboard.org> | 2012-03-17 11:10:59 +1100 |
| commit | de5e7e27ece1b91f58302e918cafb38adf6584f7 (patch) | |
| tree | f6b95ffb313cb530931841c100327260c8ecbb3b | |
| parent | 443c79047be865c747bb7e47f685d041cde85e28 (diff) | |
Don't clone replies we can already see. That will break stuff.
| -rw-r--r-- | js/post-hover.js | 5 |
1 files changed, 4 insertions, 1 deletions
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(); |
