diff options
author | Andrew Dolgov <[email protected]> | 2005-10-17 04:25:44 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-10-17 04:25:44 +0100 |
commit | a7de14fce1f8a895177465d44b4d90411338f122 (patch) | |
tree | d4d70ab5b43384234238690bab312bb55f49869b /feedlist.js | |
parent | b6644d296a9e29a39e052a84324ccc806787a401 (diff) |
disable feed toolbar catchup button when catchup is not applicable
Diffstat (limited to 'feedlist.js')
-rw-r--r-- | feedlist.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js index 2e6497a1a..641bf69e7 100644 --- a/feedlist.js +++ b/feedlist.js @@ -77,6 +77,13 @@ function viewfeed(feed, skip, subop, doc) { disableContainerChildren("headlinesToolbar", false, doc); + var btnMarkAsRead = doc.getElementById("btnMarkFeedAsRead"); + + if (btnMarkAsRead && (feed < 0 || !isNumeric(feed))) { + btnMarkAsRead.disabled = true; + btnMarkAsRead.className = "disabledButton"; + } + // notify(""); } |