From 28a5a7a0e1fbf6fa15bfaba852fa4df1d2abf409 Mon Sep 17 00:00:00 2001 From: sLorenzini Date: Wed, 3 Apr 2013 16:18:37 +0200 Subject: [PATCH] [-] FO: fixed bug Solved a problem with JSON.stringify problem with IE8 - #PSCFV-8340 --- modules/sendtoafriend/sendtoafriend-extra.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/sendtoafriend/sendtoafriend-extra.tpl b/modules/sendtoafriend/sendtoafriend-extra.tpl index cd2f84f35..f7439b9cd 100644 --- a/modules/sendtoafriend/sendtoafriend-extra.tpl +++ b/modules/sendtoafriend/sendtoafriend-extra.tpl @@ -45,7 +45,7 @@ $('document').ready(function(){ {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} type: "POST", headers: {"cache-control": "no-cache"}, - data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: JSON.stringify(datas)},{/literal}{literal} + data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: unescape(JSON.stringify(datas).replace(/u/g, '%u'))},{/literal}{literal} dataType: "json", success: function(result){ $.fancybox.close();