mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-15 23:55:56 +00:00
add hotkey to catchup all feeds, add optional warning to catchupAllFeeds()
This commit is contained in:
22
tt-rss.js
22
tt-rss.js
@@ -219,20 +219,24 @@ function updateFeedList(silent, fetch) {
|
||||
|
||||
function catchupAllFeeds() {
|
||||
|
||||
var query_str = "backend.php?op=feeds&subop=catchupAll";
|
||||
var str = __("Mark all articles as read?");
|
||||
|
||||
notify_progress("Marking all feeds as read...");
|
||||
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
|
||||
|
||||
debug("catchupAllFeeds Q=" + query_str);
|
||||
var query_str = "backend.php?op=feeds&subop=catchupAll";
|
||||
|
||||
new Ajax.Request(query_str, {
|
||||
onComplete: function(transport) {
|
||||
feedlist_callback2(transport);
|
||||
} });
|
||||
notify_progress("Marking all feeds as read...");
|
||||
|
||||
global_unread = 0;
|
||||
updateTitle("");
|
||||
debug("catchupAllFeeds Q=" + query_str);
|
||||
|
||||
new Ajax.Request(query_str, {
|
||||
onComplete: function(transport) {
|
||||
feedlist_callback2(transport);
|
||||
} });
|
||||
|
||||
global_unread = 0;
|
||||
updateTitle("");
|
||||
}
|
||||
}
|
||||
|
||||
function viewCurrentFeed(subop) {
|
||||
|
||||
Reference in New Issue
Block a user