aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-07-11 16:30:29 -0300
committerSilvio <silvio@devlet.com.br>2011-07-11 16:30:29 -0300
commitd9272af6fdc2ad744296fd40810a69d3e441d780 (patch)
tree061fd97966f4f5a037d1bd575d8141a69cec14c3
parent48a23a0517b8df1031e2bbe576ea5e2dae42bec3 (diff)
downloadfinder_menu-d9272af6fdc2ad744296fd40810a69d3e441d780.tar.gz
finder_menu-d9272af6fdc2ad744296fd40810a69d3e441d780.tar.bz2
Adding finder-degraded classHEADmaster
-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;
}