mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 06:25:57 +00:00
make CDM auto-catchup optional (closes #121)
This commit is contained in:
@@ -2109,6 +2109,9 @@
|
|||||||
print "<param key=\"confirm_feed_catchup\" value=\"" .
|
print "<param key=\"confirm_feed_catchup\" value=\"" .
|
||||||
sprintf("%d", get_pref($link, "CONFIRM_FEED_CATCHUP")) . "\"/>";
|
sprintf("%d", get_pref($link, "CONFIRM_FEED_CATCHUP")) . "\"/>";
|
||||||
|
|
||||||
|
print "<param key=\"cdm_auto_catchup\" value=\"" .
|
||||||
|
sprintf("%d", get_pref($link, "CDM_AUTO_CATCHUP")) . "\"/>";
|
||||||
|
|
||||||
print "</init-params>";
|
print "</init-params>";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -46,10 +46,13 @@ function headlines_callback() {
|
|||||||
|
|
||||||
if (_cdm_wd_timeout) window.clearTimeout(_cdm_wd_timeout);
|
if (_cdm_wd_timeout) window.clearTimeout(_cdm_wd_timeout);
|
||||||
|
|
||||||
if (!document.getElementById("headlinesList")) {
|
if (!document.getElementById("headlinesList") &&
|
||||||
|
getInitParam("cdm_auto_catchup") == 1) {
|
||||||
debug("starting CDM watchdog");
|
debug("starting CDM watchdog");
|
||||||
_cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000);
|
_cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000);
|
||||||
_cdm_wd_vishist = new Array();
|
_cdm_wd_vishist = new Array();
|
||||||
|
} else {
|
||||||
|
debug("not in CDM mode or watchdog disabled");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_tag_cdm_scroll) {
|
if (_tag_cdm_scroll) {
|
||||||
|
|||||||
Reference in New Issue
Block a user