diff options
author | Andrew Dolgov <[email protected]> | 2005-08-29 08:56:12 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-08-29 08:56:12 +0100 |
commit | 40789bbf5dff451423370c88d8dcf30eb2f04bba (patch) | |
tree | 3b7015a9973fc69013d8f3414d43bf6db7b35d18 /tt-rss.js | |
parent | 7ff88e75bd52bd3b1379e4a36a477f6c750ac7b9 (diff) |
fix bug in catchupPage button handling
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -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; |