]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix bug in catchupPage button handling
authorAndrew Dolgov <fox@madoka.spb.ru>
Mon, 29 Aug 2005 07:56:12 +0000 (08:56 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Mon, 29 Aug 2005 07:56:12 +0000 (08:56 +0100)
tt-rss.js

index 30ed65177d5ff4d54f038b29563bce12ab598511..7c64363d989c0c077af4cd72f58ef77062aab245 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -248,8 +248,10 @@ function catchupPage(feed) {
 
                var button = document.getElementById("btnCatchupPage");
 
-               button.className = "disabledButton";
-               button.href = "";
+               if (button) {
+                       button.className = "disabledButton";
+                       button.href = "";
+               }
        
                xmlhttp.open("GET", query_str, true);
                xmlhttp.onreadystatechange=notify_callback;
@@ -397,8 +399,10 @@ function view(id,feed_id) {
 
        if (unread_rows.length == 0) {
                var button = document.getElementById("btnCatchupPage");
-               button.className = "disabledButton";
-               button.href = "";
+               if (button) {
+                       button.className = "disabledButton";
+                       button.href = "";
+               }
        }
 
        active_post_id = id;