diff options
author | Silvio <silvio@devlet.com.br> | 2011-04-20 13:45:57 -0300 |
---|---|---|
committer | Silvio <silvio@devlet.com.br> | 2011-04-20 13:45:57 -0300 |
commit | b0dd50e73c7bdf86fa2b779f045ebbb2186c987c (patch) | |
tree | c38b093644f94d30db5653ebf08a0cf8079c1fa4 | |
parent | e8b3ee01a0c659e3567a2704ce69ef116818baef (diff) | |
download | finder_menu-b0dd50e73c7bdf86fa2b779f045ebbb2186c987c.tar.gz finder_menu-b0dd50e73c7bdf86fa2b779f045ebbb2186c987c.tar.bz2 |
Using Drupal.behaviors
-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();
+};
|