From: Andrew Dolgov Date: Wed, 8 Aug 2007 13:17:30 +0000 (+0100) Subject: confirm page catchup (closes #134) X-Git-Tag: 1.2.14~127 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=8a5b4579faf150e0d095b52b542cd7eae89cf949;p=tt-rss.git confirm page catchup (closes #134) --- diff --git a/viewfeed.js b/viewfeed.js index 4fd9db30..633d883b 100644 --- a/viewfeed.js +++ b/viewfeed.js @@ -647,6 +647,14 @@ function cdmSelectArticles(mode) { function catchupPage() { + var fn = getFeedName(getActiveFeedId(), active_feed_is_cat); + + var str = "Mark all visible articles in " + fn + " as read?"; + + if (getInitParam("confirm_feed_catchup") == 1 && !confirm(str)) { + return; + } + if (document.getElementById("headlinesList")) { selectTableRowsByIdPrefix('headlinesList', 'RROW-', 'RCHK-', true, 'Unread', true); selectionToggleUnread(false, false, 'viewCurrentFeed()', true);