summaryrefslogtreecommitdiff
path: root/feedlist.js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-11-11 15:35:29 +0400
committerAndrew Dolgov <[email protected]>2011-11-11 15:35:29 +0400
commita593cb62f35cd0cee13327cff483e4bab849fce3 (patch)
tree61bc7bc336ebc067d1f3f7a923b92d7c51f2b721 /feedlist.js
parente3d2c029a6bf929fe3506d14bd1bcee3a4dcddf0 (diff)
catchupFeed: add confirmation prompt
Diffstat (limited to 'feedlist.js')
-rw-r--r--feedlist.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/feedlist.js b/feedlist.js
index dacef5c22..833fe9e26 100644
--- a/feedlist.js
+++ b/feedlist.js
@@ -459,6 +459,14 @@ function getNextUnreadFeed(feed, is_cat) {
function catchupFeed(feed, is_cat) {
try {
+ var str = __("Mark all articles in %s as read?");
+ var fn = getFeedName(getActiveFeedId(), activeFeedIsCat());
+
+ str = str.replace("%s", fn);
+
+ if (getInitParam("confirm_feed_catchup") == 1 && !confirm(str)) {
+ return;
+ }
var catchup_query = "?op=rpc&subop=catchupFeed&feed_id=" +
feed + "&is_cat=" + is_cat;