]> git.wh0rd.org - tt-rss.git/commitdiff
inject headlines-spacer even if cdm auto catchup is disabled
authorAndrew Dolgov <fox@fakecake.org>
Thu, 25 Apr 2013 05:43:36 +0000 (09:43 +0400)
committerAndrew Dolgov <fox@fakecake.org>
Thu, 25 Apr 2013 05:43:36 +0000 (09:43 +0400)
js/viewfeed.js

index 14ef2f8168826780aedcd80c4cdbd76372e16f71..96919dc01d1958fb103ada34f8fcc11d69300a86 100644 (file)
@@ -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();