mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-19 13:31:29 +00:00
disable feed toolbar catchup button when catchup is not applicable
This commit is contained in:
@@ -77,6 +77,13 @@ function viewfeed(feed, skip, subop, doc) {
|
|||||||
|
|
||||||
disableContainerChildren("headlinesToolbar", false, doc);
|
disableContainerChildren("headlinesToolbar", false, doc);
|
||||||
|
|
||||||
|
var btnMarkAsRead = doc.getElementById("btnMarkFeedAsRead");
|
||||||
|
|
||||||
|
if (btnMarkAsRead && (feed < 0 || !isNumeric(feed))) {
|
||||||
|
btnMarkAsRead.disabled = true;
|
||||||
|
btnMarkAsRead.className = "disabledButton";
|
||||||
|
}
|
||||||
|
|
||||||
// notify("");
|
// notify("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -276,6 +276,13 @@ function viewfeed(feed, skip, subop) {
|
|||||||
|
|
||||||
disableContainerChildren("headlinesToolbar", false, doc);
|
disableContainerChildren("headlinesToolbar", false, doc);
|
||||||
|
|
||||||
|
var btnMarkAsRead = document.getElementById("btnMarkFeedAsRead");
|
||||||
|
|
||||||
|
if (btnMarkAsRead && (feed < 0 || !isNumeric(feed))) {
|
||||||
|
btnMarkAsRead.disabled = true;
|
||||||
|
btnMarkAsRead.className = "disabledButton";
|
||||||
|
}
|
||||||
|
|
||||||
// notify("");
|
// notify("");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
Feed: <input class="button" type="submit"
|
Feed: <input class="button" type="submit"
|
||||||
onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
|
onclick="javascript:viewCurrentFeed(0, 'ForceUpdate')" value="Update">
|
||||||
|
|
||||||
<input class="button" type="submit"
|
<input class="button" type="submit" id="btnMarkFeedAsRead"
|
||||||
onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
|
onclick="javascript:viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read">
|
||||||
|
|
||||||
</td>
|
</td>
|
||||||
|
|||||||
Reference in New Issue
Block a user