diff options
author | Michal Čihař <michal@cihar.com> | 2014-03-19 15:30:01 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2014-03-19 15:33:46 +0400 |
commit | 5284882d3dd9f3214fe8c62ef7acd82c3b493c33 (patch) | |
tree | c31cee68b804eab4e38d1906797df81e437fd35c /setup | |
parent | 0d8f510c22a9d2fff4cef85c8b39615e4df91380 (diff) |
Use native browser support for JSON
It's there in anything recent (only not supported in IE 6 and 7 which we
don't support anyway).
Signed-off-by: Michal Čihař <michal@cihar.com>
Diffstat (limited to 'setup')
-rw-r--r-- | setup/scripts.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/scripts.js b/setup/scripts.js index a5a19d827d..2aefdf03f6 100644 --- a/setup/scripts.js +++ b/setup/scripts.js @@ -46,7 +46,7 @@ $(document).ready(function(){ $('body').css('min-width', width); $('.tabs_contents').css('min-width', contentWidth); }); - + // // END: Messages // ------------------------------------------------------------------ @@ -84,7 +84,7 @@ function ajaxValidate(parent, id, values) data: { token: parent.closest('form').find('input[name=token]').val(), id: id, - values: $.toJSON(values) + values: JSON.stringify(values) }, success: function (response) { if (response === null) { |