From 83cd78c95f7089e0e947ca75f991e96267e15577 Mon Sep 17 00:00:00 2001
From: Dries Buytaert <dries@buytaert.net>
Date: Sun, 16 May 2010 19:08:08 +0000
Subject: [PATCH] - Patch #800186 by dereine: use parseJSON instead of
 parseJson.

---
 misc/ajax.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/ajax.js b/misc/ajax.js
index 339d167ebe56..a9588261bb54 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);
     },
-- 
GitLab