summaryrefslogtreecommitdiff
path: root/viewfeed.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2007-08-08 14:17:30 +0100
committerAndrew Dolgov <[email protected]>2007-08-08 14:17:30 +0100
commit8a5b4579faf150e0d095b52b542cd7eae89cf949 (patch)
treee11ca275af58fb72f90789195ac20e8db09b22c2 /viewfeed.js
parent1f8361c4356e817fbc9bc0286818d2a27c5207b4 (diff)
confirm page catchup (closes #134)
Diffstat (limited to 'viewfeed.js')
-rw-r--r--viewfeed.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/viewfeed.js b/viewfeed.js
index 4fd9db30f..633d883b7 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);