total_unread = feedtu.innerHTML;
update_title();
}
+
+ notify("");
}
}
}
-function update_feed_list(called_from_timer, fetch) {
+function updateFeedList(called_from_timer, fetch) {
if (called_from_timer != true) {
- document.getElementById("feeds").innerHTML = "Loading feeds, please wait...";
+ //document.getElementById("feeds").innerHTML = "Loading feeds, please wait...";
+ notify("Updating feeds...");
}
var query_str = "backend.php?op=feeds";
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
-
}
-function viewfeed(feed, skip, ext) {
+function catchupAllFeeds() {
+ var query_str = "backend.php?op=feeds&subop=catchupAll";
+
+ notify("Marking all feeds as read...");
+
+ xmlhttp.open("GET", query_str, true);
+ xmlhttp.onreadystatechange=feedlist_callback;
+ xmlhttp.send(null);
+
+}
-// notify("view-feed: " + feed);
+function viewfeed(feed, skip, subop) {
document.getElementById('headlines').innerHTML='Loading headlines, please wait...';
document.getElementById('content').innerHTML=' ';
xmlhttp.open("GET", "backend.php?op=viewfeed&feed=" + param_escape(feed) +
- "&skip=" + param_escape(skip) + "&ext=" + param_escape(ext) , true);
+ "&skip=" + param_escape(skip) + "&subop=" + param_escape(subop) , true);
xmlhttp.onreadystatechange=viewfeed_callback;
xmlhttp.send(null);
function timeout() {
- update_feed_list(true);
+ updateFeedList(true);
setTimeout("timeout()", 1800*1000);
}
function init() {
- update_feed_list(false, false);
+ updateFeedList(false, false);
setTimeout("timeout()", 1800*1000);
}