diff options
author | Andrew Dolgov <[email protected]> | 2006-07-18 03:46:27 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2006-07-18 03:46:27 +0100 |
commit | fce2483891be61631f7941e577f4ecd9f2d2bc0e (patch) | |
tree | 3043f5668aadd9d0b293016a865881efd5022cb0 | |
parent | fe6c1902f1b861591236e3f6f6ba3ae9948ddf6e (diff) |
add confirmation to Mark as read action (closes #96)
-rw-r--r-- | tt-rss.js | 9 | ||||
-rw-r--r-- | tt-rss.php | 2 |
2 files changed, 10 insertions, 1 deletions
@@ -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 149dafc1e..6aac5c9b3 100644 --- a/tt-rss.php +++ b/tt-rss.php @@ -197,7 +197,7 @@ window.onload = init; onclick="viewCurrentFeed(0, 'ForceUpdate')" value="Update"> <input class="button" type="submit" - onclick="viewCurrentFeed(0, 'MarkAllRead')" value="Mark as read"> + onclick="catchupCurrentFeed()" value="Mark as read"> </td> <td align="right"> |