From 5284882d3dd9f3214fe8c62ef7acd82c3b493c33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 19 Mar 2014 12:30:01 +0100 Subject: Use native browser support for JSON MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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ř --- setup/scripts.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setup') 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) { -- cgit v1.2.3