diff options
author | friendica <info@friendica.com> | 2011-12-14 15:51:13 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-14 15:51:13 -0800 |
commit | 84fd2a1501e3cf2e7bf3c140e7f91ecfca2f7c7f (patch) | |
tree | 403ea8cfc302a3c8fc261340d3328fd05f16e179 /js | |
parent | ce44e4016a0f78c8ce215f7b8d0573735812bded (diff) | |
download | volse-hubzilla-84fd2a1501e3cf2e7bf3c140e7f91ecfca2f7c7f.tar.gz volse-hubzilla-84fd2a1501e3cf2e7bf3c140e7f91ecfca2f7c7f.tar.bz2 volse-hubzilla-84fd2a1501e3cf2e7bf3c140e7f91ecfca2f7c7f.zip |
live update glitches cont.
Diffstat (limited to 'js')
-rw-r--r-- | js/main.js | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/js/main.js b/js/main.js index 071acb777..8421deb56 100644 --- a/js/main.js +++ b/js/main.js @@ -254,16 +254,14 @@ prev = 'live-' + src; - $('.wall-item-outside-wrapper',data).each(function() { + $('.wall-item-outside-wrapper.comment',data).each(function() { var ident = $(this).attr('id'); - // If not on page 1, only add new conversation items to existing conversations on this page + if($('#' + ident).length == 0) { - if(profile_page == 1 || prev != 'live-' + src) { $('img',this).each(function() { $(this).attr('src',$(this).attr('dst')); }); $('#' + prev).after($(this)); - } } else { $('#' + ident + ' ' + '.wall-item-ago').replaceWith($(this).find('.wall-item-ago')); |