From d5cdcab85986e873ac93a521e7be0bd6c8f8f83e Mon Sep 17 00:00:00 2001 From: Jerome Nadaud Date: Thu, 8 Aug 2013 13:06:18 +0200 Subject: [PATCH] [-] MO : sendtofriend FixBug Form error --- modules/sendtoafriend/sendtoafriend-extra.tpl | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) mode change 100644 => 100755 modules/sendtoafriend/sendtoafriend-extra.tpl diff --git a/modules/sendtoafriend/sendtoafriend-extra.tpl b/modules/sendtoafriend/sendtoafriend-extra.tpl old mode 100644 new mode 100755 index 8c701642a..7437589fd --- a/modules/sendtoafriend/sendtoafriend-extra.tpl +++ b/modules/sendtoafriend/sendtoafriend-extra.tpl @@ -32,13 +32,15 @@ $('document').ready(function(){ $('#sendEmail').click(function(){ var datas = []; - $('#fancybox-content').find('input').each(function(index){ + $('#send_friend_form_content').find(':input').each(function(index){ var o = {}; o.key = $(this).attr('name'); o.value = $(this).val(); + if (o.value != '') datas.push(o); }); + if (datas.length >= 3) { $.ajax({ @@ -73,7 +75,7 @@ $('document').ready(function(){ -
+

{l s='Recipient' mod='sendtoafriend'} :