diff options
author | Silvio <silvio@devlet.com.br> | 2011-07-11 16:30:29 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-07-11 16:30:29 -0300 |
commit | d9272af6fdc2ad744296fd40810a69d3e441d780 (patch) | |
tree | 061fd97966f4f5a037d1bd575d8141a69cec14c3 | |
parent | 48a23a0517b8df1031e2bbe576ea5e2dae42bec3 (diff) | |
download | finder_menu-d9272af6fdc2ad744296fd40810a69d3e441d780.tar.gz finder_menu-d9272af6fdc2ad744296fd40810a69d3e441d780.tar.bz2 |
-rw-r--r-- | finder_menu.js | 3 | ||||
-rw-r--r-- | finder_menu.module | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/finder_menu.js b/finder_menu.js index e9fecd3..99c4742 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -188,5 +188,8 @@ function ul2finder() Drupal.behaviors.finderMenu = function() {
$('#finder:not(.finder-menu-processed)').addClass('finder-menu-processed').each(function() {
ul2finder();
+
+ // Remove hidden class, used to hide finder if no js is available.
+ $('#finder').removeClass('finder-degraded');
});
};
diff --git a/finder_menu.module b/finder_menu.module index 996f94b..c7c2e83 100644 --- a/finder_menu.module +++ b/finder_menu.module @@ -160,7 +160,7 @@ function theme_finder_menu_css() { function finder_menu_build($menu, $id, $class, &$level = NULL) { if ($level == NULL) { - $output = '<ul id="' . $id .'" class="'. $class .'">'; + $output = '<ul id="' . $id .'" class="'. $id .'-degraded '. $class .'">'; $output .= implode((array) module_invoke_all('finder_menu_build')); $level = 0; } |