From: Andrew Dolgov Date: Thu, 25 Apr 2013 05:43:36 +0000 (+0400) Subject: inject headlines-spacer even if cdm auto catchup is disabled X-Git-Tag: 1.7.9~25^2~87 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=06a02265c47fc17bc45fe5222581873fc652ab61;p=tt-rss.git inject headlines-spacer even if cdm auto catchup is disabled --- diff --git a/js/viewfeed.js b/js/viewfeed.js index 14ef2f81..96919dc0 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 + "
"; - } + content = content + "
"; 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();