Don't clone replies we can already see. That will break stuff.

This commit is contained in:
Michael Save 2012-03-17 11:10:59 +11:00
parent 443c79047b
commit de5e7e27ec

View File

@ -63,7 +63,10 @@ $(document).ready(function(){
url: url, url: url,
context: document.body, context: document.body,
success: function(data) { 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']) if(typeof window.enable_fa == 'function' && localStorage['forcedanon'])
enable_fa(); enable_fa();