diff options
author | Silvio <s1lv10@uol.com.br> | 2009-10-03 19:11:29 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2009-10-03 19:11:29 -0300 |
commit | 70b95e59a630eb620b81be8216d63b0f3c9848e5 (patch) | |
tree | 1b1c870ba36a4dc09b38478d4583c47da5133b04 | |
parent | ecd0a5c422114eb2d2482e471ff98890ac70da68 (diff) | |
download | finder_menu-70b95e59a630eb620b81be8216d63b0f3c9848e5.tar.gz finder_menu-70b95e59a630eb620b81be8216d63b0f3c9848e5.tar.bz2 |
Minor changes
-rw-r--r-- | finder_menu.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/finder_menu.js b/finder_menu.js index 17efa76..34516ee 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -61,7 +61,7 @@ function ul2finder() for(var i=0;i<uls.length;i++)
{
// hide unconnected or closing elements
- if (!connected(parentUls[0], uls[i]) || window.finderOpened[this.id] == true)
+ if (!connected(parentUls[0],uls[i]) || window.finderOpened[this.id] == true)
{
ref = uls[i].parentNode.getElementsByTagName('a')[0];
if (ref != this && !isparent(uls[i],parentUls[0])) {
@@ -73,10 +73,10 @@ function ul2finder() // open or close a given finder tab
if (window.finderOpened[this.id] == false) {
- changelink('open', this);
+ changelink('open',this);
cssjs('add',parentUls[0],showClass);
} else {
- changelink('close', this);
+ changelink('close',this);
for(var u=0;u<parentUls.length;u++) {
cssjs('remove',parentUls[u],showClass);
}
@@ -92,7 +92,7 @@ function ul2finder() * written by Silvio - s1lv10 at uol.com.br
* changes the state of a given finder link
*/
- function changelink(action, ref) {
+ function changelink(action,ref) {
var state = false;
switch (action) {
case 'open':
@@ -116,7 +116,7 @@ function ul2finder() * checks if an element is parent of another via DOM
* inspired by http://stackoverflow.com/questions/245241/jquery-ancestors-using-jquery-objects
*/
- function isparent(par, child) {
+ function isparent(par,child) {
if ($(child).parents().index(par) >= 0) {
return true;
}
@@ -129,7 +129,7 @@ function ul2finder() * checks if two elements are connect via DOM, either by one being
* child of parent of the another.
*/
- function connected(a, b) {
+ function connected(a,b) {
if (isparent(a, b) || isparent(b, a)) {
return true;
}
|