diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 15:06:42 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-04-19 15:06:42 +0200 |
commit | 05d203a989721f3e456ba516ef07be3fd72f460b (patch) | |
tree | 58073f16f936f8ce3b26ad3db377ecf1e5da085a /settings/js | |
parent | 37530f27f00a1b284c339d8b8a11563d79ca5757 (diff) | |
download | nextcloud-server-05d203a989721f3e456ba516ef07be3fd72f460b.tar.gz nextcloud-server-05d203a989721f3e456ba516ef07be3fd72f460b.zip |
replace $.parseJSON() by JSON.parse()
Diffstat (limited to 'settings/js')
-rw-r--r-- | settings/js/certificates.js | 4 | ||||
-rw-r--r-- | settings/js/personal.js | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/settings/js/certificates.js b/settings/js/certificates.js index f2a8e6b0afb..7e62a4f5157 100644 --- a/settings/js/certificates.js +++ b/settings/js/certificates.js @@ -24,10 +24,10 @@ $(document).ready(function () { }, success: function (data) { if (typeof data === 'string') { - data = $.parseJSON(data); + data = JSON.parse(data); } else if (data && data.length) { // fetch response from iframe - data = $.parseJSON(data[0].body.innerText); + data = JSON.parse(data[0].body.innerText); } if (!data || typeof(data) === 'string') { // IE8 iframe workaround comes here instead of fail() diff --git a/settings/js/personal.js b/settings/js/personal.js index bd13b7fd251..b6e8e2ff508 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -166,7 +166,7 @@ function cleanCropper () { function avatarResponseHandler (data) { if (typeof data === 'string') { - data = $.parseJSON(data); + data = JSON.parse(data); } var $warning = $('#avatar .warning'); $warning.hide(); @@ -248,10 +248,10 @@ $(document).ready(function () { done: function (e, data) { var response = data; if (typeof data.result === 'string') { - response = $.parseJSON(data.result); + response = JSON.parse(data.result); } else if (data.result && data.result.length) { // fetch response from iframe - response = $.parseJSON(data.result[0].body.innerText); + response = JSON.parse(data.result[0].body.innerText); } else { response = data.result; } |