viewfeed: try to prevent dupe headlines from being loaded in the buffer
This commit is contained in:
parent
543fce93fc
commit
957425aa41
|
@ -96,8 +96,10 @@ function headlines_callback2(transport, offset, background) {
|
||||||
c.domNode.removeChild(hsp);
|
c.domNode.removeChild(hsp);
|
||||||
|
|
||||||
$$("#headlines-tmp > div").each(function(row) {
|
$$("#headlines-tmp > div").each(function(row) {
|
||||||
|
if ($$("#headlines-frame DIV[id="+row.id+"]").length == 0) {
|
||||||
row.style.display = 'none';
|
row.style.display = 'none';
|
||||||
c.domNode.appendChild(row);
|
c.domNode.appendChild(row);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
|
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
|
||||||
|
|
Loading…
Reference in New Issue