From: Andrew Dolgov Date: Tue, 18 Jul 2006 02:46:27 +0000 (+0100) Subject: add confirmation to Mark as read action (closes #96) X-Git-Tag: schema_freeze_for_1.2.2~73 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=fce2483891be61631f7941e577f4ecd9f2d2bc0e;p=tt-rss.git add confirmation to Mark as read action (closes #96) --- diff --git a/tt-rss.js b/tt-rss.js index fb4248ba..0a17c14c 100644 --- 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') + } +} diff --git a/tt-rss.php b/tt-rss.php index 149dafc1..6aac5c9b 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -197,7 +197,7 @@ window.onload = init; onclick="viewCurrentFeed(0, 'ForceUpdate')" value="Update"> + onclick="catchupCurrentFeed()" value="Mark as read">