#390968: Use Drupal 6's JavaScript API to load the JavaScript for the module, by remi
This commit is contained in:
parent
b2b3f7f0b4
commit
0dbc7d7df4
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user