diff options
Diffstat (limited to 'misc/ajax.js')
-rw-r--r-- | misc/ajax.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/ajax.js b/misc/ajax.js index 339d167eb..a9588261b 100644 --- a/misc/ajax.js +++ b/misc/ajax.js @@ -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); }, |