diff options
-rw-r--r-- | finder_menu.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/finder_menu.js b/finder_menu.js index 6145e20..bb135ca 100644 --- a/finder_menu.js +++ b/finder_menu.js @@ -185,8 +185,6 @@ function ul2finder() }
}
-// Check if the browser supports DOM, and start the script if it does.
-if(document.getElementById && document.createTextNode)
-{
- $(document).ready(function() { ul2finder(); });
-}
+Drupal.behaviors.finderMenu = function() {
+ ul2finder();
+};
|