From 13f0d19c42dc38b35c4ab334c6c9e1f0355ae0cc Mon Sep 17 00:00:00 2001 From: Silvio Date: Fri, 2 Oct 2009 18:06:13 -0300 Subject: Changing approach --- finder_menu.js | 224 ++++++++++++++++++++++++++------------------------------- 1 file changed, 103 insertions(+), 121 deletions(-) diff --git a/finder_menu.js b/finder_menu.js index ce8e6a9..b6b25db 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -6,126 +6,108 @@ */ function ul2finder() { - // Define variables used and classes to be applied/removed - var i,uls,als,finder; - var parentClass='parent'; - var showClass='shown'; - var hideClass='hidden'; - var openClass='open'; + // Define variables used and classes to be applied/removed + var i,uls,als,finder; + var parentClass='parent'; + var showClass='shown'; + var hideClass='hidden'; + var openClass='open'; window.finderOpened = new Object(); - // check if our finder list exists, if not, stop all activities - finder=document.getElementById('finder'); - if(!finder){return;} + // check if our finder list exists, if not, stop all activities + finder=document.getElementById('finder'); + if(!finder){return;} - // add the class domenabled to the body - cssjs('add',document.body,'domenabled') + // add the class domenabled to the body + cssjs('add',document.body,'domenabled'); - // loop through all lists inside finder, position and hide them - // by applying the class hidden - uls=document.getElementById('finder').getElementsByTagName('ul'); - for(i=0;i