Commit 83cd78c9 authored by Dries's avatar Dries

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

parent a082f0c3
......@@ -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);
},
......
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