1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-13 17:05:56 +00:00

basic functionality pass 3

This commit is contained in:
Andrew Dolgov
2005-08-21 16:35:22 +01:00
parent 82baad4a8a
commit 40d13c2836
2 changed files with 124 additions and 2 deletions

View File

@@ -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);
}