From: Andrew Dolgov Date: Sun, 25 Sep 2011 16:03:16 +0000 (+0400) Subject: viewfeed: try to prevent dupe headlines from being loaded in the buffer X-Git-Tag: 1.5.6~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=957425aa4147016ede2aba82ff0f876a895679f6;p=tt-rss.git viewfeed: try to prevent dupe headlines from being loaded in the buffer --- 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"});