From e295ef1580dd23e2d8795757e8be03a51581b70c Mon Sep 17 00:00:00 2001 From: gRoussac Date: Fri, 29 Mar 2013 18:00:35 +0100 Subject: [PATCH] [-] MO : Fix bug #PSCFV-8430 bad post type ajax request, thanks to maofree --- modules/sendtoafriend/sendtoafriend-extra.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/sendtoafriend/sendtoafriend-extra.tpl b/modules/sendtoafriend/sendtoafriend-extra.tpl index c3ee09dc1..a1e6fa1de 100644 --- a/modules/sendtoafriend/sendtoafriend-extra.tpl +++ b/modules/sendtoafriend/sendtoafriend-extra.tpl @@ -43,7 +43,8 @@ $('document').ready(function(){ { $.ajax({ {/literal}url: "{$module_dir}sendtoafriend_ajax.php",{literal} - post: "POST", + type: "POST", + headers: { "cache-control": "no-cache" }, data: {action: 'sendToMyFriend', secure_key: '{/literal}{$stf_secure_key}{literal}', friend: JSON.stringify(datas)},{/literal}{literal} dataType: "json", success: function(result){