- Patch #800186 by dereine: use parseJSON instead of parseJson.
parent
a082f0c30e
commit
83cd78c95f
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue