feedlist: do not expand category on click

This commit is contained in:
Andrew Dolgov 2010-11-16 09:53:55 +03:00
parent 2ef5c21f61
commit 7923cfe97c
2 changed files with 4 additions and 2 deletions

View File

@ -916,7 +916,7 @@ function selectFeed(feed, is_cat) {
if (treeNode) { if (treeNode) {
treeNode = treeNode[0]; treeNode = treeNode[0];
tree._expandNode(treeNode); if (!is_cat) tree._expandNode(treeNode);
tree._selectNode(treeNode); tree._selectNode(treeNode);
} }

View File

@ -315,8 +315,10 @@ function init() {
var id = String(item.id); var id = String(item.id);
var is_cat = id.match("^CAT:"); var is_cat = id.match("^CAT:");
var feed = id.substr(id.indexOf(":")+1); var feed = id.substr(id.indexOf(":")+1);
viewfeed(feed, '', is_cat); viewfeed(feed, '', is_cat);
return false;
}, },
openOnClick: false,
showRoot: false, showRoot: false,
}, "feedTree"); }, "feedTree");