From: Andrew Dolgov Date: Fri, 11 Nov 2011 11:35:29 +0000 (+0400) Subject: catchupFeed: add confirmation prompt X-Git-Tag: 1.5.7~16 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=a593cb62f35cd0cee13327cff483e4bab849fce3;p=tt-rss.git catchupFeed: add confirmation prompt --- diff --git a/feedlist.js b/feedlist.js index dacef5c2..833fe9e2 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;