From 0dbc7d7df46a99b63d3c9973fc59b80e1cb9df24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roger=20L=C3=B3pez?= Date: Wed, 1 Apr 2009 00:23:46 +0000 Subject: [PATCH] #390968: Use Drupal 6's JavaScript API to load the JavaScript for the module, by remi --- simplemenu.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)