]> git.wh0rd.org Git - tt-rss.git/commitdiff
getPreviousFeed: wrap to last feed to be consistent with getNextFeed
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 9 Jun 2014 09:23:27 +0000 (13:23 +0400)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 9 Jun 2014 09:23:27 +0000 (13:23 +0400)
js/FeedTree.js

index e35417dafd1e844b04c696667048a5d77dacf805..4ae82d8d96b9fa6fe9da6cae7502b19ba4fa6652 100644 (file)
@@ -539,7 +539,7 @@ dojo.declare("fox.FeedTree", dijit.Tree, {
                }
 
                items = this.model.store._arrayOfAllItems;
-               var item = items[0];
+               var item = items[0] == treeItem ? items[items.length-1] : items[0];
 
                for (var i = 0; i < items.length; i++) {
                        if (items[i] == treeItem) {