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