From: Andrew Dolgov Date: Mon, 17 Oct 2005 03:25:44 +0000 (+0100) Subject: disable feed toolbar catchup button when catchup is not applicable X-Git-Tag: 1.0.7~40 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a7de14fce1f8a895177465d44b4d90411338f122;p=tt-rss.git disable feed toolbar catchup button when catchup is not applicable --- diff --git a/feedlist.js b/feedlist.js index 2e6497a1..641bf69e 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(""); } diff --git a/tt-rss.js b/tt-rss.js index 26218889..a760c4c1 100644 --- a/tt-rss.js +++ b/tt-rss.js @@ -276,6 +276,13 @@ function viewfeed(feed, skip, subop) { disableContainerChildren("headlinesToolbar", false, doc); + var btnMarkAsRead = document.getElementById("btnMarkFeedAsRead"); + + if (btnMarkAsRead && (feed < 0 || !isNumeric(feed))) { + btnMarkAsRead.disabled = true; + btnMarkAsRead.className = "disabledButton"; + } + // notify(""); } diff --git a/tt-rss.php b/tt-rss.php index d5271b84..8a9afd76 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -110,7 +110,7 @@  Feed: -