1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-02-10 16:01:33 +00:00

cdm tweaks, misc fixes

This commit is contained in:
Andrew Dolgov
2007-01-26 06:36:19 +01:00
parent e4609ea9a0
commit c50e2b3004
5 changed files with 39 additions and 16 deletions
+11 -4
View File
@@ -553,8 +553,6 @@ function cdmWatchdog() {
var ctr = document.getElementById("headlinesInnerContainer");
if (!ctr.hasChildNodes()) return;
var ids = new Array();
var e = ctr.firstChild;
@@ -583,6 +581,15 @@ function cdmWatchdog() {
}
// method 2: article bottom is visible and is in upper 1/2 of the viewport
/* if (e.offsetTop + e.offsetHeight >= ctr.scrollTop &&
e.offsetTop + e.offsetHeight <= ctr.scrollTop + ctr.offsetHeight/2) {
ids.push(e.id.replace("RROW-", ""));
} */
}
e = e.nextSibling;
@@ -604,11 +611,11 @@ function cdmWatchdog() {
xmlhttp_rpc.open("GET", query, true);
xmlhttp_rpc.onreadystatechange=all_counters_callback;
xmlhttp_rpc.send(null);
xmlhttp_rpc.send(null);
}
_cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 5000);
_cdm_wd_timeout = window.setTimeout("cdmWatchdog()", 4000);
} catch (e) {
exception_error(e, "cdmWatchdog");