From: Andrew Dolgov Date: Tue, 18 Jan 2011 13:27:31 +0000 (+0300) Subject: fix j/k selecting hidden categories (refs #292) X-Git-Tag: 1.5.1~4^2 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=c2b2869cbccc936c73317ed34543621a6a70530a;p=tt-rss.git fix j/k selecting hidden categories (refs #292) --- diff --git a/FeedTree.js b/FeedTree.js index 4e090eed..06f166c0 100644 --- a/FeedTree.js +++ b/FeedTree.js @@ -315,9 +315,10 @@ dojo.declare("fox.FeedTree", dijit.Tree, { var box = this._itemNodesMap[id]; if (box) { - box = box[0].containerNode.parentNode.parentNode; + var row = box[0].rowNode; + var cat = box[0].rowNode.parentNode.parentNode; - if (Element.visible(box)) { + if (Element.visible(cat) && Element.visible(row)) { item = items[j]; break; } @@ -352,13 +353,15 @@ dojo.declare("fox.FeedTree", dijit.Tree, { var box = this._itemNodesMap[id]; if (box) { - box = box[0].containerNode.parentNode.parentNode; + var row = box[0].rowNode; + var cat = box[0].rowNode.parentNode.parentNode; - if (Element.visible(box)) { + if (Element.visible(cat) && Element.visible(row)) { item = items[j]; break; } } + } break; }