From 957425aa4147016ede2aba82ff0f876a895679f6 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Sun, 25 Sep 2011 20:03:16 +0400 Subject: [PATCH] viewfeed: try to prevent dupe headlines from being loaded in the buffer --- viewfeed.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/viewfeed.js b/viewfeed.js index d8406f45..c36b06a6 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"}); -- 2.39.5