From 5c862970eaeb02b858281b56491de5b679990de3 Mon Sep 17 00:00:00 2001 From: Silvio Date: Sat, 3 Oct 2009 18:37:23 -0300 Subject: Trying without record of previous clicked link --- finder_menu.js | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/finder_menu.js b/finder_menu.js index 96fed45..7dd276f 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -13,7 +13,6 @@ function ul2finder() var hideClass='hidden'; var openClass='open'; window.finderOpened = new Object(); - window.finderPrevious = null; // check if our finder list exists, if not, stop all activities finder=document.getElementById('finder'); @@ -94,26 +93,6 @@ function ul2finder() } } - // hide the previously opened element if not connected - if (window.finderPrevious != null && window.finderPrevious != this.id) { - - previous = document.getElementById(window.finderPrevious); - previousUls = previous.parentNode.getElementsByTagName('ul'); - current = this.parentNode.getElementsByTagName('ul')[0]; - - if (!connected(previousUls[0],current)) { - window.finderOpened[previous.id] = false; - // change the current link from open to parent - // and hide the current nested list - cssjs('add',previous,parentClass); - cssjs('remove',previous,openClass); - for(var t=0;t