diff options
Diffstat (limited to 'misc/ahah.js')
-rw-r--r-- | misc/ahah.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/ahah.js b/misc/ahah.js index 91906c771..70199f35a 100644 --- a/misc/ahah.js +++ b/misc/ahah.js @@ -17,10 +17,10 @@ * Attaches the ahah behavior to each ahah form element. */ Drupal.behaviors.ahah = { - attach: function(context) { - for (var base in Drupal.settings.ahah) { + attach: function(context, settings) { + for (var base in settings.ahah) { if (!$('#'+ base + '.ahah-processed').size()) { - var element_settings = Drupal.settings.ahah[base]; + var element_settings = settings.ahah[base]; $(element_settings.selector).each(function() { element_settings.element = this; |