summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2005-08-21 16:35:22 +0100
committerAndrew Dolgov <[email protected]>2005-08-21 16:35:22 +0100
commit40d13c283683b15d7a5d40cfcd158dc84c440085 (patch)
tree02baa6221ea216996702963cad02aa0f276bac35 /tt-rss.js
parent82baad4a8a00249746f11b353361930383307306 (diff)
basic functionality pass 3
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js17
1 files changed, 15 insertions, 2 deletions
diff --git a/tt-rss.js b/tt-rss.js
index a6f88d3d8..7e6699856 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -90,14 +90,17 @@ function view_callback() {
}
-function update_feed_list() {
+function update_feed_list(called_from_timer) {
- document.getElementById("feeds").innerHTML = "Updating feeds, please wait...";
+ if (called_from_timer != true) {
+ document.getElementById("feeds").innerHTML = "Updating feeds, please wait...";
+ }
xmlhttp.open("GET", "backend.php?op=feeds", true);
xmlhttp.onreadystatechange=feedlist_callback;
xmlhttp.send(null);
+
}
function viewfeed(feed, skip, ext) {
@@ -137,10 +140,20 @@ function view(id,feed_id) {
}
+function timeout() {
+
+ update_feed_list(true);
+
+ setTimeout("timeout()", 120*1000);
+
+}
+
function init() {
notify("init");
update_feed_list();
+ setTimeout("timeout()", 120*1000);
+
}