]> git.wh0rd.org Git - tt-rss.git/commitdiff
feedlist: do not expand category on click
authorAndrew Dolgov <fox@fakecake.org>
Tue, 16 Nov 2010 06:53:55 +0000 (09:53 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Tue, 16 Nov 2010 06:53:55 +0000 (09:53 +0300)
feedlist.js
tt-rss.js

index c3860da55a5ab37184131876eff149a49f6f0930..428a054f190e52a1399027de3e9721907fcc8706 100644 (file)
@@ -916,7 +916,7 @@ function selectFeed(feed, is_cat) {
 
                if (treeNode) {
                        treeNode = treeNode[0];
-                       tree._expandNode(treeNode);
+                       if (!is_cat) tree._expandNode(treeNode);
                        tree._selectNode(treeNode);
                }
 
index f7beba47409056a656bd2dc51b91b04e67efe2aa..8864e81a3d596392e471aeb7a95907971d0c8433 100644 (file)
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -315,8 +315,10 @@ function init() {
                                        var id = String(item.id);
                                        var is_cat = id.match("^CAT:");
                                        var feed = id.substr(id.indexOf(":")+1);
-                                       viewfeed(feed, '', is_cat);                             
+                                       viewfeed(feed, '', is_cat);
+                                       return false;
                                },
+                               openOnClick: false,
                                showRoot: false,
                        }, "feedTree");