]> git.wh0rd.org - tt-rss.git/blobdiff - js/viewfeed.js
fetch_file_contents: support retarded schema-less urls
[tt-rss.git] / js / viewfeed.js
index 76248415aef7f07a10e92a57813701bc4590a35f..c319a8ed02e2c40c3ea362841d3680a110696ede 100644 (file)
@@ -151,9 +151,9 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
 
                                        if (!hsp) hsp = new Element("DIV", {"id": "headlines-spacer"});
 
-                                       if (getInitParam("cdm_auto_catchup") == 1) {
+//                                     if (getInitParam("cdm_auto_catchup") == 1) {
                                                c.domNode.appendChild(hsp);
-                                       }
+//                                     }
 
                                        console.log("added " + new_elems.size() + " headlines");
 
@@ -180,7 +180,8 @@ function headlines_callback2(transport, offset, background, infscroll_req) {
 
                                        var hsp = $("headlines-spacer");
 
-                                       if (hsp) hsp.innerHTML = "Click to open next unread feed.";
+                                       if (hsp) hsp.innerHTML = "<a href='#' onclick='openNextUnreadFeed()'>" +
+                                               __("Click to open next unread feed.") + "</a>";
                                }
                        }
 
@@ -1311,8 +1312,8 @@ function headlines_scroll_handler(e) {
                                                ((e.scrollTop + e.offsetHeight) / e.scrollHeight >= 0.7))) {
 
                                if (hsp)
-                                       hsp.innerHTML = "<img src='images/indicator_tiny.gif'> " +
-                                               __("Loading, please wait...");
+                                       hsp.innerHTML = "<span class='loading'><img src='images/indicator_tiny.gif'> " +
+                                               __("Loading, please wait...") + "</span>";
 
                                loadMoreHeadlines();
                                return;
@@ -1365,7 +1366,7 @@ function headlines_scroll_handler(e) {
                                var child = $$("#headlines-frame div[id*=RROW]").last();
 
                                if (child && $("headlines-frame").scrollTop >
-                                               (child.offsetTop + child.offsetHeight/2)) {
+                                               (child.offsetTop + child.offsetHeight - 50)) {
 
                                        console.log("we seem to be at an end");