always create headline-spacer on lazy load

This commit is contained in:
Andrew Dolgov 2014-07-26 22:00:33 +04:00
parent 74217c72a1
commit 1d6191ee0a

View file

@ -151,9 +151,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"}); if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
if (getInitParam("cdm_auto_catchup") == 1) { // if (getInitParam("cdm_auto_catchup") == 1) {
c.domNode.appendChild(hsp); c.domNode.appendChild(hsp);
} // }
console.log("added " + new_elems.size() + " headlines"); console.log("added " + new_elems.size() + " headlines");