mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-16 05:35:57 +00:00
catchupFeed: add confirmation prompt
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user