]> git.wh0rd.org - tt-rss.git/commitdiff
getRelativeFeedId: fix
authorAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Aug 2007 03:34:40 +0000 (04:34 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Sat, 11 Aug 2007 03:34:40 +0000 (04:34 +0100)
functions.js

index 15ebdb816b521f8e266dd171efbd01257e2228d2..dc55b2c17e7fb309d0c5e52c82e45163b5c72ec1 100644 (file)
@@ -714,7 +714,7 @@ function parse_counters(reply, scheduled_call) {
                                        }
 
                                        if (row_needs_hl) { 
-                                               new Effect.Highlight(feedr, {duration: 0.3, startcolor: "#fff7d5"});
+                                               new Effect.Highlight(feedr, {duration: 1, startcolor: "#fff7d5"});
                                        }
                                } else {
                                        feedctr.className = "invisible";
@@ -1235,11 +1235,15 @@ function getRelativeFeedId(list, id, direction, unread_only) {
                        var idx = feeds.indexOf(id);
                        if (idx != -1 && idx < feeds.length) {
                                return feeds[idx+1];                                    
+                       } else {
+                               return getRelativeFeedId(list, false, direction, unread_only);
                        }
                } else {
                        var idx = feeds.indexOf(id);
                        if (idx > 0) {
                                return feeds[idx-1];
+                       } else {
+                               return getRelativeFeedId(list, false, direction, unread_only);
                        }
                }