]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix catching up for grouped feeds
authorAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 3 Sep 2015 13:41:04 +0000 (16:41 +0300)
committerAndrew Dolgov <noreply@madoka.volgo-balt.ru>
Thu, 3 Sep 2015 13:41:04 +0000 (16:41 +0300)
js/feedlist.js
js/tt-rss.js

index 7a5996a87e1dfea72e92d4ce54a27e790a6130d7..d6eaf17c8640c449b3dfef399b0b3d04a4fe1323 100644 (file)
@@ -59,6 +59,7 @@ function viewfeed(params) {
                var infscroll_req = params.infscroll_req;
                var can_wait = params.can_wait;
                var viewfeed_debug = params.viewfeed_debug;
+               var method = params.method;
 
                if (is_cat == undefined)
                        is_cat = false;
@@ -102,6 +103,8 @@ function viewfeed(params) {
                var query = "?op=feeds&method=view&feed=" + param_escape(feed) + "&" +
                        toolbar_query;
 
+               if (method) query += "&m=" + param_escape(method);
+
                if (offset > 0) {
                        if (current_first_id) {
                                query = query + "&fid=" + param_escape(current_first_id);
index 2dbf8a3b58629654f9b374023c53c74041c54b89..5261485ae340833b3f089c152e3dc4f9c034fd72 100644 (file)
@@ -146,11 +146,11 @@ function catchupAllFeeds() {
        }
 }
 
-function viewCurrentFeed() {
-       console.log("viewCurrentFeed");
+function viewCurrentFeed(method) {
+       console.log("viewCurrentFeed: " + method);
 
        if (getActiveFeedId() != undefined) {
-               viewfeed({feed: getActiveFeedId(), is_cat: activeFeedIsCat()});
+               viewfeed({feed: getActiveFeedId(), is_cat: activeFeedIsCat(), method: method});
        }
        return false; // block unneeded form submits
 }