From dce38f44de04bd7a1f91f8e57f6d266bd5e1af86 Mon Sep 17 00:00:00 2001 From: Callum Macrae Date: Fri, 19 Aug 2011 10:45:03 +0100 Subject: [ticket/10328] Added a JSON class. The JSON class adds a consistent way to send JSON to the client, making it perfect for AJAX (jQuery automatically parses it). PHPBB3-10328 --- phpBB/styles/script.js | 3 --- 1 file changed, 3 deletions(-) (limited to 'phpBB/styles/script.js') diff --git a/phpBB/styles/script.js b/phpBB/styles/script.js index 54248cc31c..3ed12bfee8 100644 --- a/phpBB/styles/script.js +++ b/phpBB/styles/script.js @@ -216,8 +216,6 @@ phpbb.ajaxify = function(options, refresh, callback) { function return_handler(res) { - res = JSON.parse(res); - if (typeof res.S_CONFIRM_ACTION === 'undefined') { /** @@ -243,7 +241,6 @@ phpbb.ajaxify = function(options, refresh, callback) { path = res.S_CONFIRM_ACTION; phpbb.loading_alert(); $.post(path, data + '&confirm=' + res.YES_VALUE, function(res) { - res = JSON.parse(res); var alert = phpbb.alert(res.MESSAGE_TITLE, res.MESSAGE_TEXT); callback = phpbb.ajax_callbacks[callback]; if (typeof callback === 'function') -- cgit v1.2.1