From: Andrew Dolgov Date: Mon, 29 Aug 2005 07:56:12 +0000 (+0100) Subject: fix bug in catchupPage button handling X-Git-Tag: 1.0.1~2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=40789bbf5dff451423370c88d8dcf30eb2f04bba;p=tt-rss.git fix bug in catchupPage button handling --- diff --git a/tt-rss.js b/tt-rss.js index 30ed6517..7c64363d 100644 --- 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;