From 5945c30693916783bbfafb5e92d456acddb0893d Mon Sep 17 00:00:00 2001 From: David Rothstein Date: Tue, 6 May 2014 07:56:09 -0400 Subject: Issue #2245331 by bendikrb: Use of reserved word in ajax.js breaks IE8. --- CHANGELOG.txt | 3 +++ misc/ajax.js | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.txt b/CHANGELOG.txt index 84e2f4806..569b7e5c1 100644 --- a/CHANGELOG.txt +++ b/CHANGELOG.txt @@ -1,6 +1,9 @@ Drupal 7.28, xxxx-xx-xx (development version) ----------------------- +- Fixed a regression introduced in Drupal 7.27 that caused JavaScript to break + on older browsers (such as Internet Explorer 8 and earlier) when Ajax was + used. - Increased the timeout used by the Update Manager module when it fetches data from drupal.org (from 5 seconds to 30 seconds), to work around a problem which causes incomplete information about security updates to be presented to diff --git a/misc/ajax.js b/misc/ajax.js index 63dd65fdd..29483b498 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -622,7 +622,7 @@ Drupal.ajax.prototype.commands = { * Command to update a form's build ID. */ updateBuildId: function(ajax, response, status) { - $('input[name="form_build_id"][value="' + response.old + '"]').val(response.new); + $('input[name="form_build_id"][value="' + response['old'] + '"]').val(response['new']); } }; -- cgit v1.2.3