]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix bug in refetch_callback
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 7 Sep 2005 07:33:33 +0000 (08:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 7 Sep 2005 07:33:33 +0000 (08:33 +0100)
tt-rss.js

index d8e9dc6a8b9ca1eec214d9d248b56fd4facb7ee9..948a0d8d2a4055335212b8db381a69e717fc38fa 100644 (file)
--- 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();
                
        }