diff options
author | Andrew Dolgov <[email protected]> | 2008-05-17 05:26:56 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-05-17 05:26:56 +0100 |
commit | a9bcfb8ff84cbaa87bf18607ced4763f0d92a192 (patch) | |
tree | af64bd68ee1199d1703668c4c9fc1655a1c8ffcd /functions.php | |
parent | f52fb64d8cde75ac94a07266cc4515d5ed07ccc4 (diff) |
vfeed grouping: allow per-feed catchup
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/functions.php b/functions.php index 9f3505f93..e9134328c 100644 --- a/functions.php +++ b/functions.php @@ -4694,6 +4694,8 @@ if ($subop == "undefined") $subop = ""; + $subop_split = split(":", $subop); + if ($subop == "CatchupSelected") { $ids = split(",", db_escape_string($_GET["ids"])); $cmode = sprintf("%d", $_GET["cmode"]); @@ -4715,6 +4717,11 @@ } } + if ($subop_split[0] == "MarkAllReadGR") { + catchup_feed($link, $subop_split[1], false); + } + + if ($feed_id > 0) { $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE id = '$feed' LIMIT 1"); @@ -4921,16 +4928,20 @@ if (defined('_VFEED_GROUP_BY_FEED')) { if ($line["feed_title"] != $cur_feed_title) { + + $cur_feed_title = $line["feed_title"]; + /* print "<tr class='feedTitle'><td colspan='7'>". $line["feed_title"]. " (<a href=\"javascript:viewfeed($feed_id, '', false)\">". "more</a>)</td></tr>"; */ + $vf_catchup_link = "(<a href='javascript:'>select</a>, + <a href='javascript:catchupFeedInGroup($feed_id, \"$cur_feed_title\")'>mark as read</a>)"; + print "<tr class='feedTitle'><td colspan='7'>". "<a href=\"javascript:viewfeed($feed_id, '', false)\">". - $line["feed_title"]."</a>:</td></tr>"; - - $cur_feed_title = $line["feed_title"]; + $line["feed_title"]."</a> $vf_catchup_link:</td></tr>"; } } |