From 4474f82dfa5c4bd05b9263766d520b540b079521 Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 2 Oct 2009 11:46:24 -0300 Subject: Searching on children and parent --- finder_menu.js | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) diff --git a/finder_menu.js b/finder_menu.js index f05ae18..ce8e6a9 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -86,24 +86,26 @@ function ul2finder() cssjs('add',this,openClass); cssjs('add',this.parentNode.getElementsByTagName('ul')[0],showClass); - // unset window.finderNode for all other nodes that aren't children + // unset window.finderNode for all other nodes that aren't children or parent children = this.parentNode.childNodes; refs = document.getElementById('finder').getElementsByTagName('a'); for (var i=0;i