Commit 2ea8bd98 authored by Dries's avatar Dries
Browse files

- Patch #507108 by quicksketch: allow AHAH to reset Drupal.settings after loading response data.

parent f981f7b6
......@@ -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) {
// Apply any settings from the returned JSON if available.
var settings = response.settings || Drupal.settings;
Drupal.attachBehaviors(new_content, settings);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment