From: Andrew Dolgov Date: Wed, 7 Sep 2005 07:33:33 +0000 (+0100) Subject: fix bug in refetch_callback X-Git-Tag: 1.0.3~18 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=310da49d2fe15daf318a10bb7e66abe00c78558a;p=tt-rss.git fix bug in refetch_callback --- diff --git a/tt-rss.js b/tt-rss.js index d8e9dc6a..948a0d8d 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -62,12 +62,16 @@ function feedlist_callback() { function refetch_callback() { if (xmlhttp_rpc.readyState == 4) { - notify("All feeds updated."); - active_feed_id = frames["feeds-frame"].document.getElementById("ACTFEEDID").innerHTML; - + var actfeedid = frames["feeds-frame"].document.getElementById("ACTFEEDID"); + + if (actfeedid) { + active_feed_id = actfeedid.innerHTML; + } + document.title = "Tiny Tiny RSS"; - + notify("All feeds updated."); + updateFeedList(); }