catchupFeed: add confirmation prompt

This commit is contained in:
Andrew Dolgov 2011-11-11 15:35:29 +04:00
parent e3d2c029a6
commit a593cb62f3
1 changed files with 8 additions and 0 deletions

View File

@ -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;