catchupFeed: add confirmation prompt
This commit is contained in:
parent
e3d2c029a6
commit
a593cb62f3
|
@ -459,6 +459,14 @@ function getNextUnreadFeed(feed, is_cat) {
|
||||||
|
|
||||||
function catchupFeed(feed, is_cat) {
|
function catchupFeed(feed, is_cat) {
|
||||||
try {
|
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=" +
|
var catchup_query = "?op=rpc&subop=catchupFeed&feed_id=" +
|
||||||
feed + "&is_cat=" + is_cat;
|
feed + "&is_cat=" + is_cat;
|
||||||
|
|
Loading…
Reference in New Issue