#390968: Use Drupal 6's JavaScript API to load the JavaScript for the module, by remi

This commit is contained in:
Roger López 2009-04-01 00:23:46 +00:00
parent b2b3f7f0b4
commit 0dbc7d7df4

View File

@ -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)