- Patch #800186 by dereine: use parseJSON instead of parseJson.

merge-requests/26/head
Dries Buytaert 2010-05-16 19:08:08 +00:00
parent a082f0c30e
commit 83cd78c95f
1 changed files with 1 additions and 1 deletions

View File

@ -132,7 +132,7 @@ Drupal.ajax = function (base, element, element_settings) {
// Sanity check for browser support (object expected).
// When using iFrame uploads, responses must be returned as a string.
if (typeof response == 'string') {
response = $.parseJson(response);
response = $.parseJSON(response);
}
return ajax.success(response, status);
},