summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-09-25 20:03:16 +0400
committerAndrew Dolgov <[email protected]>2011-09-25 20:03:16 +0400
commit957425aa4147016ede2aba82ff0f876a895679f6 (patch)
tree730415388500ffb44ae85c6bafa6b677ada08ca5 /viewfeed.js
parent543fce93fc51da8cd1b865b3a8658cdde3661745 (diff)
viewfeed: try to prevent dupe headlines from being loaded in the buffer
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js6
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"});