diff options
author | Andrew Dolgov <[email protected]> | 2005-08-21 16:35:22 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-21 16:35:22 +0100 |
commit | 40d13c283683b15d7a5d40cfcd158dc84c440085 (patch) | |
tree | 02baa6221ea216996702963cad02aa0f276bac35 /tt-rss.js | |
parent | 82baad4a8a00249746f11b353361930383307306 (diff) |
basic functionality pass 3
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 17 |
1 files changed, 15 insertions, 2 deletions
@@ -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); + } |