]> git.wh0rd.org Git - tt-rss.git/commitdiff
viewfeed: try to prevent dupe headlines from being loaded in the buffer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 25 Sep 2011 16:03:16 +0000 (20:03 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 25 Sep 2011 16:03:16 +0000 (20:03 +0400)
viewfeed.js

index d8406f45483b8ec5adaff5c51e91f75fd09f075e..c36b06a618593d270e15becb3b25d31135a23248 100644 (file)
@@ -96,8 +96,10 @@ function headlines_callback2(transport, offset, background) {
                                                c.domNode.removeChild(hsp);
 
                                        $$("#headlines-tmp > div").each(function(row) {
-                                               row.style.display = 'none';
-                                               c.domNode.appendChild(row);
+                                               if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
+                                                       row.style.display = 'none';
+                                                       c.domNode.appendChild(row);
+                                               }
                                        });
 
                                        if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});