From: Andrew Dolgov Date: Tue, 6 Mar 2007 06:30:17 +0000 (+0100) Subject: make CDM auto-catchup optional (closes #121) X-Git-Tag: 1.2.9~20 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ac7bcd7135719c135ef5fe589f5bb23c30835dc6;p=tt-rss.git make CDM auto-catchup optional (closes #121) --- diff --git a/functions.php b/functions.php index 4c5059d1..ba92b2ee 100644 --- a/functions.php +++ b/functions.php @@ -2109,6 +2109,9 @@ print ""; + print ""; + print ""; } diff --git a/viewfeed.js b/viewfeed.js index 7678fbba..54ae82b0 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -46,10 +46,13 @@ function headlines_callback() { 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"); _cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000); _cdm_wd_vishist = new Array(); + } else { + debug("not in CDM mode or watchdog disabled"); } if (_tag_cdm_scroll) {