catchupFeed: add confirmation prompt

master
Andrew Dolgov 13 years ago
parent e3d2c029a6
commit a593cb62f3

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

Loading…
Cancel
Save