]> git.wh0rd.org Git - tt-rss.git/commitdiff
add a hack to remove duplicate headlines from the buffer on initial load
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jul 2012 05:20:55 +0000 (09:20 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 11 Jul 2012 05:20:55 +0000 (09:20 +0400)
js/viewfeed.js

index a4e9f82c052e77cb56959ab802a63bccd7b62b40..92a610f8d7eafe8e8364bec367ffb2c8a97583bf 100644 (file)
@@ -80,6 +80,11 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
                                dijit.byId("headlines-toolbar").attr('content',
                                        reply['headlines']['toolbar']);
 
+                               $$("#headlines-frame > div[id*=RROW]").each(function(row) {
+                                       if ($$("#headlines-frame DIV[id="+row.id+"]").length > 1) {
+                                               row.parentNode.removeChild(row);
+                                       }
+                               });
 
                                if (getInitParam("cdm_auto_catchup") == 1) {
                                        var hsp = $("headlines-spacer");