diff options
author | Andrew Dolgov <[email protected]> | 2008-04-18 07:27:49 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-04-18 07:27:49 +0100 |
commit | f8232151a0a4bdd430e928d742686a2330e99d68 (patch) | |
tree | 256f0019972ed404d9212f1f8072f4edc77fc244 /tt-rss.js | |
parent | 06925d9e8502e544a98b7b2dacf618be9e34f25f (diff) |
add hotkey to catchup all feeds, add optional warning to catchupAllFeeds()
Diffstat (limited to 'tt-rss.js')
-rw-r--r-- | tt-rss.js | 22 |
1 files changed, 13 insertions, 9 deletions
@@ -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) { |