diff options
-rw-r--r-- | misc/ahah.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ahah.js b/misc/ahah.js index b56044c3b..3dfb356d3 100644 --- a/misc/ahah.js +++ b/misc/ahah.js @@ -197,7 +197,9 @@ Drupal.ahah.prototype.success = function (response, status) { // Attach all javascript behaviors to the new content, if it was successfully // added to the page, this if statement allows #ahah[wrapper] to be optional. if (new_content.parents('html').length > 0) { - Drupal.attachBehaviors(new_content); + // Apply any settings from the returned JSON if available. + var settings = response.settings || Drupal.settings; + Drupal.attachBehaviors(new_content, settings); } Drupal.unfreezeHeight(); |