diff options
author | Andrew Dolgov <[email protected]> | 2012-07-11 09:20:55 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2012-07-11 09:20:55 +0400 |
commit | 04994fdb00033bf2ae3b840accd8a556e84f08a9 (patch) | |
tree | 3e2eb947392b1a70b064cc1ff9a231dba96c9ad8 | |
parent | 0670a2a71ddb769e5b5d2e56e6cc2c41adebe715 (diff) |
add a hack to remove duplicate headlines from the buffer on initial load
-rw-r--r-- | js/viewfeed.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index a4e9f82c0..92a610f8d 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"); |