]> git.wh0rd.org Git - tt-rss.git/commitdiff
confirm page catchup (closes #134)
authorAndrew Dolgov <fox@bah.spb.su>
Wed, 8 Aug 2007 13:17:30 +0000 (14:17 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Wed, 8 Aug 2007 13:17:30 +0000 (14:17 +0100)
viewfeed.js

index 4fd9db30f8e64654d52e72f920ac0c4065c7f193..633d883b79ae51ce47dc35890b2285b2dbaa5231 100644 (file)
@@ -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);