From 7923cfe97cb6cb6d626568ca7f8281fe65a4e0cd Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 16 Nov 2010 09:53:55 +0300 Subject: [PATCH] feedlist: do not expand category on click --- feedlist.js | 2 +- tt-rss.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/feedlist.js b/feedlist.js index c3860da5..428a054f 100644 --- a/feedlist.js +++ b/feedlist.js @@ -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); } diff --git a/tt-rss.js b/tt-rss.js index f7beba47..8864e81a 100644 --- 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"); -- 2.39.5