prototypize creation of headlines-spacer

This commit is contained in:
Andrew Dolgov 2011-08-03 18:48:28 +04:00
parent 18eb64a8a1
commit 608cbde285
1 changed files with 2 additions and 6 deletions

View File

@ -73,9 +73,7 @@ function headlines_callback2(transport, feed_cur_page) {
reply['headlines']['toolbar']); reply['headlines']['toolbar']);
var hsp = $("headlines-spacer"); var hsp = $("headlines-spacer");
if (!hsp) hsp = document.createElement("DIV"); if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
hsp.id = "headlines-spacer";
if (!_infscroll_disable) if (!_infscroll_disable)
hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " + hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " +
@ -103,9 +101,7 @@ function headlines_callback2(transport, feed_cur_page) {
c.domNode.appendChild(row); c.domNode.appendChild(row);
}); });
if (!hsp) hsp = document.createElement("DIV"); if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
hsp.id = "headlines-spacer";
if (!_infscroll_disable) if (!_infscroll_disable)
hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " + hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " +