]> git.wh0rd.org - tt-rss.git/blobdiff - tt-rss.js
add confirmation to Mark as read action (closes #96)
[tt-rss.git] / tt-rss.js
index fb4248ba918216c134aa05ca07638a5c8f7b4fbb..0a17c14c3f94937ae9e6eb114e0a3e5083f5c2b3 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -555,3 +555,12 @@ function parse_runtime_info(elem) {
                param = param.nextSibling;
        }
 }
+
+function catchupCurrentFeed() {
+
+       var fn = getFeedName(getActiveFeedId());
+       
+       if (confirm("Mark all articles in " + fn + " as read?")) {
+               return viewCurrentFeed(0, 'MarkAllRead')
+       }
+}