diff options
author | Silvio <s1lv10@uol.com.br> | 2009-10-03 19:27:26 -0300 |
---|---|---|
committer | Silvio <s1lv10@uol.com.br> | 2009-10-03 19:27:26 -0300 |
commit | ab0bfa6ab6e77ad5acdcf8848f7fd0839cc4be1c (patch) | |
tree | 9600cb762b1eb05470706d781a4f8acd275a0f10 | |
parent | 691dcd3d97f0155994998609b95b61127ee3df08 (diff) | |
download | finder_menu-ab0bfa6ab6e77ad5acdcf8848f7fd0839cc4be1c.tar.gz finder_menu-ab0bfa6ab6e77ad5acdcf8848f7fd0839cc4be1c.tar.bz2 |
Adding hidden class to ul's also via module
-rw-r--r-- | finder_menu.js | 2 | ||||
-rw-r--r-- | finder_menu.module | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/finder_menu.js b/finder_menu.js index 83c3e25..e6372de 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -114,7 +114,7 @@ function ul2finder() /*
* isparent
* written by Silvio (s1lv10 at uol.com.br)
- * checks if an element is parent of another via DOM
+ * checks if an element is parent of another via DOM using jQuery
* inspired by http://stackoverflow.com/questions/245241/jquery-ancestors-using-jquery-objects
*/
function isparent(par,child) {
diff --git a/finder_menu.module b/finder_menu.module index 7191228..0edeecb 100644 --- a/finder_menu.module +++ b/finder_menu.module @@ -127,10 +127,10 @@ function finder_menu_build($menu) { global $finder_menu_id; if ($finder_menu_id == null) { - $output = '<ul id="finder">'; + $output = '<ul id="finder" class="hidden">'; $finder_menu_id = 0; } else { - $output = '<ul id="finder[ul][' . $finder_menu_id . ']">'; + $output = '<ul id="finder[ul][' . $finder_menu_id . ']" class="hidden">'; } foreach ($menu as $menu_item) { |