]> git.mxchange.org Git - friendica.git/commitdiff
live update glitches cont.
authorfriendica <info@friendica.com>
Wed, 14 Dec 2011 23:51:13 +0000 (15:51 -0800)
committerfriendica <info@friendica.com>
Wed, 14 Dec 2011 23:51:13 +0000 (15:51 -0800)
js/main.js

index 071acb77705637708f726ef40ff389c5e89427e5..8421deb567d907b8100a2ff000b214292c53b9cc 100644 (file)
 
                        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'));