From c2b2869cbccc936c73317ed34543621a6a70530a Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 18 Jan 2011 16:27:31 +0300 Subject: [PATCH] fix j/k selecting hidden categories (refs #292) --- FeedTree.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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; } -- 2.39.5