]> git.wh0rd.org Git - tt-rss.git/commitdiff
article_callback: trigger loadMoreHeadlines() when reached last article in the buffer
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:25:21 +0000 (09:25 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Wed, 21 Sep 2011 05:25:21 +0000 (09:25 +0400)
viewfeed.js

index 83fe934c11bf35b01a001c925db811790a7985fd..5658c9f48d61bee0c02245a1c1b7ea715858df03 100644 (file)
@@ -274,6 +274,16 @@ function article_callback2(transport, id) {
 
                request_counters();
 
+               try {
+                       if (!_infscroll_disable &&
+                                       $$("#headlines-frame > div[id*=RROW]").last().hasClassName("Selected")) {
+
+                               loadMoreHeadlines();
+                       }
+               } catch (e) {
+                       console.warn(e);
+               }
+
                notify("");
        } catch (e) {
                exception_error("article_callback2", e, transport);