diff options
author | Andrew Dolgov <[email protected]> | 2013-04-25 09:43:36 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-04-25 09:43:36 +0400 |
commit | 06a02265c47fc17bc45fe5222581873fc652ab61 (patch) | |
tree | 9e413a4310d189367bb4df4cd434f437f5940a07 /js/viewfeed.js | |
parent | a06045adf033a232c12cfdce1ebcc8fdaedcc3eb (diff) |
inject headlines-spacer even if cdm auto catchup is disabled
Diffstat (limited to 'js/viewfeed.js')
-rw-r--r-- | js/viewfeed.js | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/js/viewfeed.js b/js/viewfeed.js index 14ef2f816..96919dc01 100644 --- a/js/viewfeed.js +++ b/js/viewfeed.js @@ -43,9 +43,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) { if (background) { var content = reply['headlines']['content']; - if (getInitParam("cdm_auto_catchup") == 1) { - content = content + "<div id='headlines-spacer'></div>"; - } + content = content + "<div id='headlines-spacer'></div>"; return; } @@ -93,11 +91,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) { } }); - if (getInitParam("cdm_auto_catchup") == 1) { - var hsp = $("headlines-spacer"); - if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"}); - dijit.byId('headlines-frame').domNode.appendChild(hsp); - } + var hsp = $("headlines-spacer"); + if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"}); + dijit.byId('headlines-frame').domNode.appendChild(hsp); initHeadlinesMenu(); |