]> git.wh0rd.org - tt-rss.git/commitdiff
add confirmation to Mark as read action (closes #96)
authorAndrew Dolgov <fox@madoka.spb.ru>
Tue, 18 Jul 2006 02:46:27 +0000 (03:46 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Tue, 18 Jul 2006 02:46:27 +0000 (03:46 +0100)
tt-rss.js
tt-rss.php

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')
+       }
+}
index 149dafc1e65ed35b7dee66bcf03b83aa7518c276..6aac5c9b3d2fd379224a5b6cd6170dd0bbda7075 100644 (file)
@@ -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">