]> git.wh0rd.org Git - tt-rss.git/commitdiff
trigger loadMoreHeadlines in view() when rendering local article only
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:32:39 +0000 (09:32 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:32:39 +0000 (09:32 +0400)
viewfeed.js

index 5658c9f48d61bee0c02245a1c1b7ea715858df03..d8406f45483b8ec5adaff5c51e91f75fd09f075e 100644 (file)
@@ -349,8 +349,20 @@ function view(id) {
 
                        // if we don't need to request any relative ids, we might as well skip
                        // the server roundtrip altogether
-                       if (cids_to_request.length == 0)
+                       if (cids_to_request.length == 0) {
+
+                               try {
+                                       if (!_infscroll_disable &&
+                                               $$("#headlines-frame > div[id*=RROW]").last().hasClassName("Selected")) {
+
+                                                       loadMoreHeadlines();
+                                       }
+                               } catch (e) {
+                                       console.warn(e);
+                               }
+
                                return;
+                       }
                }
 
                last_requested_article = id;