diff --git a/simplemenu.js b/simplemenu.js index 82159f8e..8016af54 100644 --- a/simplemenu.js +++ b/simplemenu.js @@ -1,6 +1,6 @@ // $Id$ -$(document).ready(function() { +Drupal.behaviors.simplemenuAttach = function(context) { // If detect pop-ups setting is enabled and we are in a pop-up window if (Drupal.settings.simplemenu.detectPopup && window.opener) { return; @@ -48,7 +48,7 @@ $(document).ready(function() { .removeAttr('title'); $('#simplemenu').children('li.expanded').addClass('root'); -}); +}; /* Copyright (c) 2006 Brandon Aaron (http://brandonaaron.net)