aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--finder_menu.js12
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;
}