From 310da49d2fe15daf318a10bb7e66abe00c78558a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 7 Sep 2005 08:33:33 +0100 Subject: [PATCH] fix bug in refetch_callback --- tt-rss.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tt-rss.js b/tt-rss.js index d8e9dc6a8..948a0d8d2 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -62,12 +62,16 @@ function feedlist_callback() { function refetch_callback() { if (xmlhttp_rpc.readyState == 4) { + + var actfeedid = frames["feeds-frame"].document.getElementById("ACTFEEDID"); + + if (actfeedid) { + active_feed_id = actfeedid.innerHTML; + } + + document.title = "Tiny Tiny RSS"; notify("All feeds updated."); - active_feed_id = frames["feeds-frame"].document.getElementById("ACTFEEDID").innerHTML; - - document.title = "Tiny Tiny RSS"; - updateFeedList(); }