summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rothstein <drothstein@gmail.com>2014-05-06 07:56:09 -0400
committerDavid Rothstein <drothstein@gmail.com>2014-05-06 07:56:09 -0400
commit5945c30693916783bbfafb5e92d456acddb0893d (patch)
tree457fd7cc37d46ba57ff5aa567d1e93924d09a585
parent5a84df030977e635a2457996d87e8a0c31b821ad (diff)
downloadbrdo-5945c30693916783bbfafb5e92d456acddb0893d.tar.gz
brdo-5945c30693916783bbfafb5e92d456acddb0893d.tar.bz2
Issue #2245331 by bendikrb: Use of reserved word in ajax.js breaks IE8.
-rw-r--r--CHANGELOG.txt3
-rw-r--r--misc/ajax.js2
2 files changed, 4 insertions, 1 deletions
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']);
}
};