]> git.mxchange.org Git - friendica.git/blobdiff - js/main.js
more work on enotify
[friendica.git] / js / main.js
index 2c8a8fad1cbd49e326986c355addfcb7f46001b7..96c7fa642b3d29779d7e7036ae2a6896bd80ac06 100644 (file)
 
                        $('.tread-wrapper',data).each(function() {
                                var ident = $(this).attr('id');
+
                                if($('#' + ident).length == 0 && profile_page == 1) {
                                        $('img',this).each(function() {
                                                $(this).attr('src',$(this).attr('dst'));
                                        });
                                        $('#' + prev).after($(this));
                                }
+                               else {
+                                       $('img',this).each(function() {
+                                               $(this).attr('src',$(this).attr('dst'));
+                                       });
+                                       $('#' + ident).replaceWith($(this));
+                               }
                                prev = ident;
                        });
 
                        // reset vars for inserting individual items
 
-                       prev = 'live-' + src;
+                       /*                      prev = 'live-' + src;
 
                        $('.wall-item-outside-wrapper',data).each(function() {
                                var ident = $(this).attr('id');
                                }
                                prev = ident; 
                        });
-
+                       */
                        $('.like-rotator').hide();
                        if(commentBusy) {
                                commentBusy = false;