summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2016-03-21 21:40:40 +0300
committerAndrew Dolgov <[email protected]>2016-03-21 21:40:40 +0300
commit701de97ebb432d1b9feb66cb3f135b7726a27c24 (patch)
tree7e902c961b4bcc494f024e7070523407d44c7142 /js
parent0a3619649483ae94cdb59f48ebfe7686f3cdbe10 (diff)
improvements for catchupFeedInGroup()
Diffstat (limited to 'js')
-rw-r--r--js/feedlist.js28
1 files changed, 27 insertions, 1 deletions
diff --git a/js/feedlist.js b/js/feedlist.js
index eb6cbdfee..8a6bb3838 100644
--- a/js/feedlist.js
+++ b/js/feedlist.js
@@ -445,7 +445,33 @@ function catchupFeedInGroup(id) {
var str = __("Mark all articles in %s as read?").replace("%s", title);
if (getInitParam("confirm_feed_catchup") != 1 || confirm(str)) {
- return viewCurrentFeed('MarkAllReadGR:' + id);
+
+ var rows = $$("#headlines-frame > div[id*=RROW][class*=Unread][orig-feed-id='"+id+"']");
+
+ if (rows.length > 0) {
+
+ rows.each(function(row) {
+ row.removeClassName("Unread");
+ });
+
+ updateFloatingTitle(true);
+
+ var catchup_query = "?op=rpc&method=catchupFeed&feed_id=" +
+ id + "&is_cat=false";
+
+ console.log(catchup_query);
+
+ notify_progress("Loading, please wait...", true);
+
+ new Ajax.Request("backend.php", {
+ parameters: catchup_query,
+ onComplete: function (transport) {
+ handle_rpc_json(transport);
+ }
+ } );
+ }
+
+ //return viewCurrentFeed('MarkAllReadGR:' + id);
}
} catch (e) {