From 04994fdb00033bf2ae3b840accd8a556e84f08a9 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 11 Jul 2012 09:20:55 +0400 Subject: [PATCH] add a hack to remove duplicate headlines from the buffer on initial load --- js/viewfeed.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/viewfeed.js b/js/viewfeed.js index a4e9f82c..92a610f8 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -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"); -- 2.39.5