From: Andrew Dolgov Date: Tue, 16 Nov 2010 06:53:55 +0000 (+0300) Subject: feedlist: do not expand category on click X-Git-Tag: 1.5.0~211 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=7923cfe97cb6cb6d626568ca7f8281fe65a4e0cd;p=tt-rss.git feedlist: do not expand category on click --- 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");