diff options
author | Silvio <s1lv10@uol.com.br> | 2009-10-03 18:37:23 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2009-10-03 18:37:23 -0300 |
commit | 5c862970eaeb02b858281b56491de5b679990de3 (patch) | |
tree | a55057288b6a243ddcda14b7ab0592581903d741 | |
parent | 910ebaabda18c1477de458b22f45a0f7f59eccdb (diff) | |
download | finder_menu-5c862970eaeb02b858281b56491de5b679990de3.tar.gz finder_menu-5c862970eaeb02b858281b56491de5b679990de3.tar.bz2 |
Trying without record of previous clicked link
-rw-r--r-- | finder_menu.js | 21 |
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;
}
|