diff options
author | Andrew Dolgov <[email protected]> | 2011-09-25 20:03:16 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-09-25 20:03:16 +0400 |
commit | 957425aa4147016ede2aba82ff0f876a895679f6 (patch) | |
tree | 730415388500ffb44ae85c6bafa6b677ada08ca5 /viewfeed.js | |
parent | 543fce93fc51da8cd1b865b3a8658cdde3661745 (diff) |
viewfeed: try to prevent dupe headlines from being loaded in the buffer
Diffstat (limited to 'viewfeed.js')
-rw-r--r-- | viewfeed.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/viewfeed.js b/viewfeed.js index d8406f454..c36b06a61 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -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"}); |