From 40789bbf5dff451423370c88d8dcf30eb2f04bba Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 29 Aug 2005 08:56:12 +0100 Subject: [PATCH] fix bug in catchupPage button handling --- tt-rss.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tt-rss.js b/tt-rss.js index 30ed65177..7c64363d9 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;