]> git.wh0rd.org Git - tt-rss.git/commitdiff
fix j/k selecting hidden categories (refs #292)
authorAndrew Dolgov <fox@fakecake.org>
Tue, 18 Jan 2011 13:27:31 +0000 (16:27 +0300)
committerAndrew Dolgov <fox@fakecake.org>
Tue, 18 Jan 2011 13:27:31 +0000 (16:27 +0300)
FeedTree.js

index 4e090eedd9cb7767d357128ac2ea38c1aec64954..06f166c033c456a999b99849f23d32ce76bdd534 100644 (file)
@@ -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;
                        }