]> git.wh0rd.org - tt-rss.git/blobdiff - js/viewfeed.js
add a hack to remove duplicate headlines from the buffer on initial load
[tt-rss.git] / 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");