aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio <silvio@devlet.com.br>2011-04-20 13:45:57 -0300
committerSilvio <silvio@devlet.com.br>2011-04-20 13:45:57 -0300
commitb0dd50e73c7bdf86fa2b779f045ebbb2186c987c (patch)
treec38b093644f94d30db5653ebf08a0cf8079c1fa4
parente8b3ee01a0c659e3567a2704ce69ef116818baef (diff)
downloadfinder_menu-b0dd50e73c7bdf86fa2b779f045ebbb2186c987c.tar.gz
finder_menu-b0dd50e73c7bdf86fa2b779f045ebbb2186c987c.tar.bz2
Using Drupal.behaviors
-rw-r--r--finder_menu.js8
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();
+};