From b21695cad61a6c911f54925975fa7c08d0b546a0 Mon Sep 17 00:00:00 2001 From: rolux Date: Wed, 14 Jul 2010 17:23:10 +0200 Subject: [PATCH] fix for json parsing errors in safari --- build/js/ox.ui.js | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/build/js/ox.ui.js b/build/js/ox.ui.js index 3d6e5fe..ab643e7 100644 --- a/build/js/ox.ui.js +++ b/build/js/ox.ui.js @@ -680,18 +680,6 @@ requires function success(data) { pending[options.id] = false; - try { - data = JSON.parse(data); - } catch (err) { - error({ - status: { - code: 500, - text: "Internal Server Error" - }, - data: {} - }); - return; - } cache[req] = { data: data, time: Ox.getTime() @@ -716,6 +704,7 @@ requires pending[options.id] = true; $.ajax({ data: options.data, + dataType: "json", error: error, success: success, timeout: options.timeout,