aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <s1lv10@uol.com.br>2009-10-27 11:00:58 -0200
committerSilvio <s1lv10@uol.com.br>2009-10-27 11:00:58 -0200
commitd56eeeaeb6a65319b827973a41338bf1fb8c8653 (patch)
tree015def8c15ee4781a20396ac06dbb40d138b617b
parent3bc2c138a924ce96aa38beb2f4c16176f5120cc8 (diff)
downloadfinder_menu-d56eeeaeb6a65319b827973a41338bf1fb8c8653.tar.gz
finder_menu-d56eeeaeb6a65319b827973a41338bf1fb8c8653.tar.bz2
Using valid id values for ul elements
-rw-r--r--finder_menu.js2
-rw-r--r--finder_menu.module2
2 files changed, 2 insertions, 2 deletions
diff --git a/finder_menu.js b/finder_menu.js
index 0021cc6..378e743 100644
--- a/finder_menu.js
+++ b/finder_menu.js
@@ -51,7 +51,7 @@ function ul2finder()
// setup the link
ref = lis[i].getElementsByTagName('a')[0];
- ref.id = 'finder[' + i + ']';
+ ref.id = 'finder-' + i;
window.finderOpened[ref.id] = false;
// if the user clicks on the link
diff --git a/finder_menu.module b/finder_menu.module
index 4a05f17..a372112 100644
--- a/finder_menu.module
+++ b/finder_menu.module
@@ -167,7 +167,7 @@ function finder_menu_build($menu, $id, $class, &$level = NULL) {
$level = 0;
}
else {
- $output = '<ul id="'. $id .'[ul]['. $level .']" class="'. $class .'">';
+ $output = '<ul id="'. $id .'-ul-'. $level .'" class="'. $class .'">';
}
foreach ($menu as $menu_item) {