mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 19:41:04 +02:00
inject headlines-spacer even if cdm auto catchup is disabled
This commit is contained in:
parent
a06045adf0
commit
06a02265c4
@ -43,9 +43,7 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
|||||||
if (background) {
|
if (background) {
|
||||||
var content = reply['headlines']['content'];
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -93,11 +91,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (getInitParam("cdm_auto_catchup") == 1) {
|
|
||||||
var hsp = $("headlines-spacer");
|
var hsp = $("headlines-spacer");
|
||||||
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
|
if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
|
||||||
dijit.byId('headlines-frame').domNode.appendChild(hsp);
|
dijit.byId('headlines-frame').domNode.appendChild(hsp);
|
||||||
}
|
|
||||||
|
|
||||||
initHeadlinesMenu();
|
initHeadlinesMenu();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user