aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finder_menu.js21
1 files changed, 0 insertions, 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<previousUls.length;t++) {
- cssjs('remove',previousUls[t],showClass);
- }
- }
- }
-
- window.finderPrevious = this.id;
// don't follow the real HREF of the link
return false;
}